ActiveSupport::Dependencies now raises NameError if it finds an existing constant in load_missing_constant. This better reflects the nature of the error which is usually caused by calling constantize on a nested constant. Closes #1423
…es. This method will also return an empty array on an abstract class or a model that the table doesn't exists.
…d security guide
This reverts commit 886818d.
…d on identity map. Identity map now considers the inheritance when creating the caching keys
… AR.new and AR.create
… to reflect its use cases
…tributes= in AR in favor of assign_attributes(attrs, :without_protection => true)
…ent security scope using the :as option, while also allowing mass-assignment security to be bypassed using :with_protected
… macro. You can also just use a block.
… the macro multiple times that will give deprecation warnings, and in 3.2 we will simply overwrite the default scope when you call the macro multiple times.
… problems with default scopes getting included into other scopes and then being unable to remove the default part via unscoped.
… in favour of defining a 'default_scope' class method in the model. See the CHANGELOG for more details.