aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/null_relation.rb
diff options
context:
space:
mode:
authorHenrik Nyh <henrik@nyh.se>2014-03-23 12:09:55 +0100
committerHenrik Nyh <henrik@nyh.se>2014-03-27 17:56:14 +0100
commit2e70f44123cb6fab9124b52a6cc02ff453b8397f (patch)
treed2fe1fcc48ea68276cb41918249fc20b95b3252c /activerecord/lib/active_record/null_relation.rb
parent5bf38ffc4f853a6ccc5812f0ed8341776b117aea (diff)
downloadrails-2e70f44123cb6fab9124b52a6cc02ff453b8397f.tar.gz
rails-2e70f44123cb6fab9124b52a6cc02ff453b8397f.tar.bz2
rails-2e70f44123cb6fab9124b52a6cc02ff453b8397f.zip
ActiveRecord/ActiveModel '#validate' alias for 'valid?'
It's unintuitive to call '#valid?' when you want to run validations but don't care about the return value. The alias in ActiveRecord isn't strictly necessary (the ActiveModel alias is still in effect), but it clarifies.
Diffstat (limited to 'activerecord/lib/active_record/null_relation.rb')
0 files changed, 0 insertions, 0 deletions