Sha256: 019ad9b74d789008e0a022519a91b215d2a9b0b15bb211927718a11391b2090d

Contents?: true

Size: 359 Bytes

Versions: 4

Compression:

Stored size: 359 Bytes

Contents

# encoding: utf-8

module DeviseFacebookOpenGraph
  module Rails
    module ControllerHelpers
      extend ActiveSupport::Concern

      included do
        helper_method :facebook_session
      end

      def facebook_session
        @facebook_session ||= DeviseFacebookOpenGraph::Facebook::Session.new_or_nil_if_invalid(cookies)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_facebook_open_graph-0.0.6 lib/devise_facebook_open_graph/rails/controller_helpers.rb
devise_facebook_open_graph-0.0.5 lib/devise_facebook_open_graph/rails/controller_helpers.rb
devise_facebook_open_graph-0.0.4 lib/devise_facebook_open_graph/rails/controller_helpers.rb
devise_facebook_open_graph-0.0.3 lib/devise_facebook_open_graph/rails/controller_helpers.rb