Method: Lighthouse::Base.inherited

Defined in:
lib/lighthouse/base.rb

.inherited(base) ⇒ Object



3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# File 'lib/lighthouse/base.rb', line 3

def self.inherited(base)
  Lighthouse.resources << base
  class << base        
    attr_accessor :site_format
    
    def site_with_update
      Lighthouse.update_site(self)
      site_without_update
    end
    alias_method_chain :site, :update
  end
  base.site_format = '%s'
  super
  Lighthouse.update_token_header(base)
  Lighthouse.update_auth(base)
end