Module: Devise::Models::GoogleAuthenticatable
- Defined in:
- lib/devise_gauth/models/google_authenticatable.rb
Defined Under Namespace
Modules: ClassMethods, GauthEnabledInstanceMethod, InstanceMethods
Class Method Summary collapse
Class Method Details
.included(base) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 21 |
# File 'lib/devise_gauth/models/google_authenticatable.rb', line 9 def self.included(base) base.extend ClassMethods base.class_eval do before_validation :assign_auth_secret, on: :create include InstanceMethods # Allow base model to override the gauth_enabled? method unless base.method_defined?(:gauth_enabled?) include GauthEnabledInstanceMethod end end end |