Class: Shatter::Service::Base::ReloadWrapper

Inherits:
Object
  • Object
show all
Defined in:
lib/shatter/service/base.rb

Class Method Summary collapse

Class Method Details

.method_missing(method, *args) ⇒ Object



11
12
13
14
15
16
17
18
# File 'lib/shatter/service/base.rb', line 11

def self.method_missing(method, *args, &)
  Shatter::RELOAD_RW_LOCK.with_write_lock do
    Shatter.reload
  end
  Shatter::RELOAD_RW_LOCK.with_read_lock do
    Shatter::Service::Base.send(method, *args)
  end
end