From 96050e1d73ff97b52f3ef3b79f813b75df615833 Mon Sep 17 00:00:00 2001 From: Carlos Antonio da Silva Date: Mon, 4 Mar 2013 09:04:48 -0300 Subject: Use 1.9 hash style in changelog and doc examples [ci skip] --- activerecord/lib/active_record/relation/query_methods.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activerecord/lib') 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 -- cgit v1.2.3