Jan
2011-Jan-30 04:21 UTC
[PATCH] guard for #define_read_method in active_record/attribute_methods/read.rb
Hi, I got this error today: /home/jan/.rvm/gems/ruby-1.9.2-p136/bundler/gems/rails-8adfede96e26/activerecord/lib/active_record/attribute_methods/read.rb:74: syntax error, unexpected '';'' ...); (v=@attributes[''name'']) && ; end; alias name _name ... ^ /home/jan/.rvm/gems/ruby-1.9.2-p136/bundler/gems/rails-8adfede96e26/activerecord/lib/active_record/attribute_methods/read.rb:74: syntax error, unexpected $end, expecting keyword_end ...e'']) && ; end; alias name _name ... ^ because cast_code in active_record/attribute_methods/read.rb#63 may be empty string. Attachment is a possible patch. Thanks, Jan -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group. To post to this group, send email to rubyonrails-core@googlegroups.com. To unsubscribe from this group, send email to rubyonrails-core+unsubscribe@googlegroups.com. For more options, visit this group at groups.google.com/group/rubyonrails-core?hl=en.