提交 00d9f58f 编写于 作者: J Jeremy Kemper

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
上级 bd087e67
......@@ -304,7 +304,9 @@ def initialize_whiny_nils
# 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
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册