Sha256: 8a633010124263f4b3ab881b548dc24647ce9d01d69d251f88ee04fa17dd65dd
Contents?: true
Size: 304 Bytes
Versions: 1
Compression:
Stored size: 304 Bytes
Contents
module Jive class OauthToken < ActiveRecord::Base module ClassMethods def self.extended(base) base.belongs_to :owner, :polymorphic => true base.belongs_to :add_on, :class_name => "Jive::AddOn", :foreign_key => :jive_add_on_id base.validates :add_on, presence: true end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
jive-oauth_token-0.0.4 | lib/jive/oauth_token/class_methods.rb |