aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/scoping/default.rb
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-27 18:47:47 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-01-28 23:25:03 -0200
commit2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb (patch)
tree23a814ed1e574b69479bd0d58c58cfbb63660000 /activerecord/lib/active_record/scoping/default.rb
parent439ac72013fc1b819e711d66642b0b5b563fd72e (diff)
downloadrails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.tar.gz
rails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.tar.bz2
rails-2cb576ef36fdf14c4d4e1b8e66d930af7ad35aeb.zip
Refactor to use each_key, remove extra spaces
Diffstat (limited to 'activerecord/lib/active_record/scoping/default.rb')
-rw-r--r--activerecord/lib/active_record/scoping/default.rb4
1 files changed, 1 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/scoping/default.rb b/activerecord/lib/active_record/scoping/default.rb
index 6835d0e01b..5bd481082e 100644
--- a/activerecord/lib/active_record/scoping/default.rb
+++ b/activerecord/lib/active_record/scoping/default.rb
@@ -1,4 +1,3 @@
-
module ActiveRecord
module Scoping
module Default
@@ -99,7 +98,7 @@ module ActiveRecord
)
end
- self.default_scopes = default_scopes + [scope]
+ self.default_scopes += [scope]
end
def build_default_scope # :nodoc:
@@ -140,7 +139,6 @@ module ActiveRecord
self.ignore_default_scope = false
end
end
-
end
end
end