Sha256: 057eafb09a51757006325534841e738f764f7eb79190c4d77d5a4ae16368d436

Contents?: true

Size: 645 Bytes

Versions: 4

Compression:

Stored size: 645 Bytes

Contents

# coding: utf-8
DeviseRussian::Engine.routes.draw do
  devise_for :users, {
    :module => :devise,
    :path => "",
    :path_names => {
      :sign_in  => "login",
      :sign_out => "logout",
      :sign_up  => "register"
    },
    :controllers => {
      :registrations => "registrations"
    }
  }

  # Авторизации пользователя
  resources :authentications, :only => [:index, :create, :destroy]

  # Вход через социальные сети
  match "/:provider/callback", :to => "authentications#create", :via => [:get, :post]
  match "/failure", :to => "authentications#failure", :via => [:get, :post]
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
devise_russian-0.0.29 config/routes.rb
devise_russian-0.0.28 config/routes.rb
devise_russian-0.0.27 config/routes.rb
devise_russian-0.0.26 config/routes.rb