Module: Reloadable::Deprecated

Defined in:
lib/active_support/reloadable.rb

Overview

:nodoc:

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object



51
52
53
54
55
56
57
58
# File 'lib/active_support/reloadable.rb', line 51

def self.included(base)
  class << base
    define_method(:reloadable?) do
      ActiveSupport::Deprecation.warn "Reloadable has been deprecated and reloadable? has no effect", caller
      true # This might not have the desired effect, as AR::B.reloadable? => true.
    end
  end
end