mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Minor formating fix
This commit is contained in:
parent
ee044ea547
commit
e945497955
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue