Sha256: 2b695a7d86b3f95cfb69256496fd95785b983f9e71aeda10697fefe9be30e3fd
Contents?: true
Size: 431 Bytes
Versions: 2
Compression:
Stored size: 431 Bytes
Contents
module MicroService class Server < ::ActiveRecord::Base module ClassMethods 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 end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
micro_service-server-0.0.2 | lib/micro_service/server/class_methods.rb |
micro_service-server-0.0.1 | lib/micro_service/server/class_methods.rb |