validation_reflection
validation_reflection copied to clipboard
This plugin adds reflective access to validations
``` /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/activerecord-3.2.0.rc2/lib/active_record/dynamic_matchers.rb:50:in `method_missing': undefined method `write_inheritable_array' for # (NoMethodError) from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:82:in `block in remember_validation_metadata' from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:81:in `each' from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:81:in `remember_validation_metadata' from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:60:in `block in validates_presence_of_with_reflection' from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:91:in `ignoring_subvalidations' from /Users/JD/.rvm/gems/ruby-1.9.2-p290@ab_reps/gems/validation_reflection-1.0.0/lib/validation_reflection.rb:58:in...
I use formtastic, and AFIK it uses validation_reflection to mark required fields. When I use: validates_presence_of :name it works, but when I use: validates :name, :presence => true it does...
Hello, I got this warning. Please tell me how I can avoid this warning. DEPRECATION WARNING: Use toplevel init.rb; rails/init.rb is deprecated: /home/guda/re/vendor/plugins/validation_reflection/rails/init.rb. (called from /home/guda/re/config/environment.rb:5) Maybe it is something...
I'm not sure it's a validation_reflection bug, but it seems to reflect only on validations, specified in source code, and not to reflect on validations, dynamically loaded from database schema...
... (to begin with) would be neat. Seems to work very similar, so... More of a feature request, might look into this myself as well.