diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-04 09:04:48 -0300 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2013-03-04 09:04:48 -0300 |
commit | 96050e1d73ff97b52f3ef3b79f813b75df615833 (patch) | |
tree | f3f92e1aa6881c867a015500ef135a0c01de8a60 /activerecord/lib | |
parent | 8d69cd3e6815396dbab371de33a1615c73302ba9 (diff) | |
download | rails-96050e1d73ff97b52f3ef3b79f813b75df615833.tar.gz rails-96050e1d73ff97b52f3ef3b79f813b75df615833.tar.bz2 rails-96050e1d73ff97b52f3ef3b79f813b75df615833.zip |
Use 1.9 hash style in changelog and doc examples [ci skip]
Diffstat (limited to 'activerecord/lib')
-rw-r--r-- | activerecord/lib/active_record/relation/query_methods.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/relation/query_methods.rb b/activerecord/lib/active_record/relation/query_methods.rb index 881ac687b3..ff3853b4d9 100644 --- a/activerecord/lib/active_record/relation/query_methods.rb +++ b/activerecord/lib/active_record/relation/query_methods.rb @@ -331,15 +331,15 @@ module ActiveRecord # which should be unscoped. The valid arguments are given in VALID_UNSCOPING_VALUES. # The method can also be called with multiple arguments. For example: # - # User.all.order('email DESC').select('id').where(:name => "John") + # User.all.order('email DESC').select('id').where(name: "John") # .unscope(:order, :select, :where) == User.all # # One can additionally pass a hash as an argument to unscope specific :where values. # This is done by passing a hash with a single key-value pair. The key should be # :where and the value should be the where value to unscope. For example: # - # User.all.where(:name => "John", :active => true).unscope(:where => :name) - # == User.all.where(:active => true) + # User.all.where(name: "John", active: true).unscope(where: :name) + # == User.all.where(active: true) # # Note that this method is more generalized than ActiveRecord::SpawnMethods#except # because #except will only affect a particular relation's values. It won't wipe |