1
0
Fork 0
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:
Jeremy Kemper 2007-10-07 22:39:44 +00:00
parent bd087e6716
commit 00d9f58f29

View file

@ -304,8 +304,10 @@ 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
if configuration.frameworks.include?(:active_record)
ActiveRecord::Base.whiny_protected_attributes = configuration.whiny_protected_attributes
end
end
def initialize_temporary_directories
if configuration.frameworks.include?(:action_controller)