Module: Devise::Models::GoogleAuthenticatable

Defined in:
lib/devise_google_authenticatable/models/google_authenticatable.rb

Defined Under Namespace

Modules: ClassMethods, InstanceMethods

Class Method Summary collapse

Class Method Details

.included(base) ⇒ Object

:nodoc:



8
9
10
11
12
13
14
15
# File 'lib/devise_google_authenticatable/models/google_authenticatable.rb', line 8

def self.included(base) # :nodoc:
  base.extend ClassMethods

  base.class_eval do
    before_validation :assign_auth_secret, :on => :create
    include InstanceMethods
  end
end