lib/fgraph/rails/fgraph_helper.rb in fgraph-0.2.0 vs lib/fgraph/rails/fgraph_helper.rb in fgraph-0.2.1
- old
+ new
@@ -5,19 +5,19 @@
# Access FGraph.config initialized with values set in <tt>[RAILS_ROOT]/config/fgraph.yml</tt>.
def fgraph_config
FGraph.config || {}
end
- # Return Facebook session, default to retrieve session from cookies
+ # Return Facebook session, default to retrieve session from cookies.
def fgraph_session(app_id = fgraph_config['app_id'],
app_secret = fgraph_config['app_secret'])
return @fgraph_session if @fgraph_session
@fgraph_session = fgraph_session_cookies(app_id, app_secret)
end
- # Return Facebook_session cookies
+ # Return Facebook session cookies.
def fgraph_session_cookies(app_id = fgraph_config['app_id'],
app_secret = fgraph_config['app_secret'])
return @fgraph_session_cookies if @fgraph_session_cookies
return if @fgraph_session_cookies == false
@@ -62,10 +62,10 @@
def fgraph_current_user
return @fgraph_current_user if @fgraph_current_user
@fgraph_current_user = fgraph_client.me
end
- # Return FGraph::Client.instance initialized with settings set in <tt>fgraph.yml</tt>.
+ # Return FGraph::Client instance initialized with settings set in <tt>fgraph.yml</tt>.
# Initialized with <tt>:access_token</tt> as well if Facebook session exists.
def fgraph_client
return @fgraph_client if @fgraph_client
@fgraph_client = FGraph::Client.new(
\ No newline at end of file