Module: Jive::Tile::ClassMethods

Defined in:
lib/jive/tile/class_methods.rb

Class Method Summary collapse

Class Method Details

.extended(base) ⇒ Object



4
5
6
7
8
9
10
# File 'lib/jive/tile/class_methods.rb', line 4

def self.extended(base)
	base.belongs_to :add_on, :class_name => "Jive::AddOn", :foreign_key => :jive_add_on_id
	base.validates :jive_add_on_id, :presence => true
	base.has_one :oauth_token, :class_name => "Jive::OauthToken", :as => :owner
	base.serialize :config, Hash
	base.after_create :fetch_oauth_token
end