Sha256: ca6ab92a31b5e03b466658bc6c177478e104e7c4772f330629c95d95d17c5548
Contents?: true
Size: 1.22 KB
Versions: 1
Compression:
Stored size: 1.22 KB
Contents
module IntercomRails module Config # Your Intercom app_id def self.app_id=(value) @app_id = value end def self.app_id @app_id end # Intercom api secret, for secure mode def self.api_secret=(value) @api_secret = value end def self.api_secret @api_secret end # Intercom API key, for some rake tasks def self.api_key=(value) @api_key = value end def self.api_key @api_key end # How is the current logged in user accessed in your controllers? def self.current_user=(value) raise ArgumentError, "current_user should be a Proc" unless value.kind_of?(Proc) @current_user = value end def self.current_user @current_user end # What class defines your user model? def self.user_model=(value) raise ArgumentError, "user_model should be a Proc" unless value.kind_of?(Proc) @user_model = value end def self.user_model @user_model end # Widget options def self.inbox=(value) raise ArgumentError, "inbox must be one of :default or :custom" unless [:default, :custom].include?(value) @inbox = value end def self.inbox @inbox end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
intercom-rails-0.0.9 | lib/intercom-rails/config.rb |