Class: Lighthouse::Base
- Inherits:
-
ActiveResource::Base
- Object
- ActiveResource::Base
- Lighthouse::Base
- Defined in:
- lib/lighthouse/base.rb
Direct Known Subclasses
Bin, Changeset, Membership, Message, Milestone, Project, ProjectMembership, TagResource, Ticket, Token, User
Class Method Summary collapse
Class Method Details
.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 |