mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Use a configuration check so ActiveRecord can be omitted. References #9699.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7781 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
bd087e6716
commit
00d9f58f29
1 changed files with 3 additions and 1 deletions
|
@ -304,7 +304,9 @@ module Rails
|
|||
# Sets +ActiveRecord::Base#whiny_protected_attributes+ which determines whether to
|
||||
# raise on mass-assigning attributes protected with +attr_protected+/+attr_accessible+.
|
||||
def initialize_whiny_protected_attributes
|
||||
ActiveRecord::Base.whiny_protected_attributes = configuration.whiny_protected_attributes
|
||||
if configuration.frameworks.include?(:active_record)
|
||||
ActiveRecord::Base.whiny_protected_attributes = configuration.whiny_protected_attributes
|
||||
end
|
||||
end
|
||||
|
||||
def initialize_temporary_directories
|
||||
|
|
Loading…
Reference in a new issue