Class: Lighthouse::Base

Inherits:
ActiveResource::Base
  • Object
show all
Defined in:
lib/lighthouse.rb

Class Method Summary collapse

Class Method Details

.inherited(base) ⇒ Object



89
90
91
92
93
94
95
96
# File 'lib/lighthouse.rb', line 89

def self.inherited(base)
  Lighthouse.resources << base
  class << base
    attr_accessor :site_format
  end
  base.site_format = '%s'
  super
end