admin.rb 246 Bytes Raw Blame History Permalink 1 2 3 4 5 6 7 8 template = ERB.new File.new("#{Rails.root}/config/admin.yml").read processed = template.result(binding) ADMIN_CONFIG = YAML.load(processed)[Rails.env] ActionView::Base.field_error_proc = Proc.new do |html_tag, instance| html_tag.html_safe end