Sha256: e2efeeeb922eb1ead5d226109c7929b10652219ea462853ac4938c63eeafd73f
Contents?: true
Size: 648 Bytes
Versions: 11
Compression:
Stored size: 648 Bytes
Contents
class User < ActiveRecord::Base devise :database_authenticatable, :confirmable, :lockable, :recoverable, :registerable, :rememberable, :timeoutable, :token_authenticatable, :trackable, :validatable attr_accessor :other_key def raw_confirmation_token @raw_confirmation_token end module ExtendMethods def new_with_session(params, session) super.tap do |user| if data = session["devise.facebook_data"] user.email = data["email"] user.confirmed_at = Time.now end end end end # They need to be included after Devise is called. extend ExtendMethods end
Version data entries
11 entries across 11 versions & 1 rubygems