Changeset 4939
- Timestamp:
- 09/03/06 20:37:25 (2 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/activesupport/lib/active_support/deprecation.rb
r4936 r4939 10 10 class << self 11 11 def warn(message = nil, callstack = caller) 12 behavior.call(deprecation_message(callstack, message)) if behavior && ! silenced?12 behavior.call(deprecation_message(callstack, message)) if behavior && !silenced? 13 13 end 14 14 15 15 def default_behavior 16 DEFAULT_BEHAVIORS[RAILS_ENV.to_s] if defined?(RAILS_ENV) 16 if defined?(RAILS_ENV) 17 DEFAULT_BEHAVIORS[RAILS_ENV.to_s] 18 else 19 DEFAULT_BEHAVIORS['test'] 20 end 17 21 end 18 22