Module: AbAdmin::Concerns::Reloadable::ClassMethods

Defined in:
lib/ab_admin/concerns/reloadable.rb

Instance Method Summary collapse

Instance Method Details

#check_reloadObject


15
16
17
# File 'lib/ab_admin/concerns/reloadable.rb', line 15

def check_reload
  self.reload_checker.check
end

#has_reload_check(key = nil, logger = nil, &block) ⇒ Object


11
12
13
# File 'lib/ab_admin/concerns/reloadable.rb', line 11

def has_reload_check(key=nil, logger=nil, &block)
  self.reload_checker = ::AbAdmin::Concerns::Reloadable::Reloader.new(key, logger, &block)
end