Module: RPlatform::Rails::ModelExtensions

Defined in:
lib/rplatform_rails/model_extensions.rb

Defined Under Namespace

Modules: ActsAsFacebookUser, ActsAsMethods

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:section: Method mixing



55
56
57
# File 'lib/rplatform_rails/model_extensions.rb', line 55

def self.included(base) # :nodoc:
  base.extend ActsAsMethods
end

Instance Method Details

#facebook_api_key(network) ⇒ Object

:section: Core API variables



42
43
44
# File 'lib/rplatform_rails/model_extensions.rb', line 42

def facebook_api_key(network)
  NETWORKS[network]["key"] || super
end

#facebook_api_secret(network) ⇒ Object



46
47
48
# File 'lib/rplatform_rails/model_extensions.rb', line 46

def facebook_api_secret(network)
  NETWORKS[network]["secret"] || super
end