Module: GoogleAuthentication::ActsAsGoogleUser::Model::ClassMethods

Defined in:
lib/google_authentication/acts_as_google_user.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#find_or_create_by_omniauth_impl(omniauth_data) ⇒ Object

Find omniauth given user or create it

Parameters:

  • omniauth_data (Hash)

    omniauth returned hash



51
52
53
54
55
56
# File 'lib/google_authentication/acts_as_google_user.rb', line 51

def find_or_create_by_omniauth_impl omniauth_data
  # use custom implementation if given by the user
  respond_to?(:find_or_create_by_omniauth) ?
      send(:find_or_create_by_omniauth, omniauth_data) :
      find_or_create_by_omniauth_default_impl(omniauth_data)
end