admin.rb 246 Bytes
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