Sha256: cb849b61d01357f26370a48df08540accec7da048724c635a77bb79f995a2111

Contents?: true

Size: 483 Bytes

Versions: 3

Compression:

Stored size: 483 Bytes

Contents

Rails.application.routes.draw do

  if GoogleAuthentication.define_routes?
    # Devise + omniauth routes only if the given class exist
    devise_for GoogleAuthentication.devise_table, :controllers => {:omniauth_callbacks => "google_authentication/omniauth_callbacks"} do
      get 'sign_in', :to => 'google_authentication/sessions#new', :as => :new_user_session
      get 'sign_out', :to => 'google_authentication/sessions#destroy', :as => :destroy_user_session
    end
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
google_authentication-0.1.2 config/routes.rb
google_authentication-0.1.1 config/routes.rb
google_authentication-0.1.0 config/routes.rb