Sha256: bf4bb5f686642db2637e20db67311103a0c40a22baf3b3ddcc03e4b69b5d433d

Contents?: true

Size: 1.28 KB

Versions: 1

Compression:

Stored size: 1.28 KB

Contents

# encoding: utf-8
require 'devise'

module DeviseFacebookOpenGraph
  module Facebook
    extend ActiveSupport::Autoload

    autoload :Config
    autoload :Session
  end

  module Rails
    extend ActiveSupport::Autoload

    autoload :ViewHelpers
    autoload :ControllerHelpers
  end
end

require 'devise_facebook_open_graph/rails'
require 'devise_facebook_open_graph/strategy'
require 'devise_facebook_open_graph/schema'

module Devise
  # 
  # Specifies database column name to store the facebook user id.
  #
  mattr_accessor :facebook_uid_field
  @@facebook_uid_field = :facebook_uid

  # 
  # Instructs this gem to auto create an account for facebook
  # users which have not visited before
  #
  mattr_accessor :facebook_auto_create_account
  @@facebook_auto_create_account = true

  #
  # Runs validation when auto creating users on facebook connect
  #
  mattr_accessor :run_validations_when_creating_facebook_user
  @@run_validations_when_creating_facebook_user = false

  #
  # Skip confirmation loop on facebook connection users
  #
  mattr_accessor :skip_confimation_for_facebook_users
  @@skip_confimation_for_facebook_users = true
end

Devise.add_module(:facebook_open_graph_authenticatable,
  :strategy => true,
  :controller => :sessions,
  :model => 'devise_facebook_open_graph/model'
)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
devise_facebook_open_graph-0.0.6 lib/devise_facebook_open_graph.rb