aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/lib
diff options
context:
space:
mode:
authorAlexander Uvarov <alexander.uvarov@gmail.com>2011-06-24 03:52:39 +0600
committerAlexander Uvarov <alexander.uvarov@gmail.com>2011-06-24 03:52:39 +0600
commite9454979555c0d36e630a2b2de43f2432ca231fa (patch)
tree047400ec11b01ccf750f444a2b4bb68eee485afa /activemodel/lib
parentee044ea5477b4af41d2c0cebb13e47600da7493a (diff)
downloadrails-e9454979555c0d36e630a2b2de43f2432ca231fa.tar.gz
rails-e9454979555c0d36e630a2b2de43f2432ca231fa.tar.bz2
rails-e9454979555c0d36e630a2b2de43f2432ca231fa.zip
Minor formating fix
Diffstat (limited to 'activemodel/lib')
-rw-r--r--activemodel/lib/active_model/mass_assignment_security.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activemodel/lib/active_model/mass_assignment_security.rb b/activemodel/lib/active_model/mass_assignment_security.rb
index c04de5b9a4..3f9feb7631 100644
--- a/activemodel/lib/active_model/mass_assignment_security.rb
+++ b/activemodel/lib/active_model/mass_assignment_security.rb
@@ -111,7 +111,7 @@ module ActiveModel
options = args.extract_options!
role = options[:as] || :default
- self._protected_attributes = protected_attributes_configs.dup
+ self._protected_attributes = protected_attributes_configs.dup
Array.wrap(role).each do |name|
self._protected_attributes[name] = self.protected_attributes(name) + args
@@ -173,7 +173,7 @@ module ActiveModel
options = args.extract_options!
role = options[:as] || :default
- self._accessible_attributes = accessible_attributes_configs.dup
+ self._accessible_attributes = accessible_attributes_configs.dup
Array.wrap(role).each do |name|
self._accessible_attributes[name] = self.accessible_attributes(name) + args