I managed to push a fix the other day for a bug, and introduce a bug
on the next line with this typo. This fixes it for real. <`)))><
---
 src/app/controllers/application_controller.rb |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/app/controllers/application_controller.rb 
b/src/app/controllers/application_controller.rb
index 5a61988..92e7e30 100644
--- a/src/app/controllers/application_controller.rb
+++ b/src/app/controllers/application_controller.rb
@@ -172,7 +172,7 @@ class ApplicationController < ActionController::Base
     arr = Array.new
     instance_variables.each do |ivar|
       val = instance_variable_get(ivar)
-      if val && val.respond_to?(:errors) && val.errors.respond_to(:size) && 
val.errors.size > 0
+      if val && val.respond_to?(:errors) && val.errors.respond_to?(:size) && 
val.errors.size > 0
         hash[:object] = ivar[1, ivar.size]
         hash[:errors] ||= []
         val.errors.each {|key,msg|
-- 
1.7.7.6

Reply via email to