Commit 88e2b6e

Stephen Peasley <speasley@users.noreply.github.com>
2015-01-19 05:16:50
Syntax cleanup. Thanks, Hound!
1 parent 5b0f3c3
Changed files (1)
config/application.rb
@@ -27,9 +27,9 @@ module App
     # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
     # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
     # config.i18n.default_locale = :de
-    
-    # Override this to dodge the Rails-injected field_with_errors that tends to break field formatting
-    config.action_view.field_error_proc = Proc.new { |html_tag, instance| 
+  
+    # Override field_with_errors div insertion that breaks field formatting
+    config.action_view.field_error_proc = Proc.new { |html_tag, _instance| 
       html_tag
     }