Module: Facebook::RailsFacebookSettings

Defined in:
lib/facebook-graphclient/rails.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.extended(klass) ⇒ Object



12
13
14
15
# File 'lib/facebook-graphclient/rails.rb', line 12

def self.extended(klass)
  klass.cattr_accessor :facebook_settings
  klass.facebook_settings = {}
end

Instance Method Details

#facebook(&blk) ⇒ Object



16
17
18
19
# File 'lib/facebook-graphclient/rails.rb', line 16

def facebook(&blk)
  instance_eval(&blk)
  include Facebook::Rails
end