mirror of
https://github.com/github/rails.git
synced 2026-04-26 03:00:59 -04:00
Merge pull request #5894 from norman/3-2-fix-nil-logger
Fix nil logger on 3.2
This commit is contained in:
@@ -191,7 +191,7 @@ module ActiveRecord
|
||||
protected
|
||||
|
||||
def valid_scope_name?(name)
|
||||
if respond_to?(name, true)
|
||||
if logger && respond_to?(name, true)
|
||||
logger.warn "Creating scope :#{name}. " \
|
||||
"Overwriting existing method #{self.name}.#{name}."
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user