Module: ActiveAdmin::Deprecation

Defined in:
lib/active_admin/deprecation.rb

Class Method Summary collapse

Class Method Details

.deprecatorObject

:nodoc:



5
6
7
# File 'lib/active_admin/deprecation.rb', line 5

def deprecator # :nodoc:
  @deprecator ||= ActiveSupport::Deprecation.new
end

.warn(message, callstack = caller) ⇒ Object



9
10
11
# File 'lib/active_admin/deprecation.rb', line 9

def warn(message, callstack = caller)
  deprecator.warn "Active Admin: #{message}", callstack
end