provider.rb 534 Bytes
class OauthClientPlugin::Provider < ActiveRecord::Base

  belongs_to :environment

  validates_presence_of :name, :strategy

  acts_as_having_image
  acts_as_having_settings :field => :options

  settings_items :client_id, :type => :string
  settings_items :client_secret, :type => :string
  settings_items :client_options, :type => Hash

  attr_accessible :name, :environment, :strategy, :client_id, :client_secret, :enabled, :client_options, :image_builder

  scope :enabled, -> { where enabled: true }

  acts_as_having_image

end