Sha256: bdb4ccf193f13083f869ec894080023e1ff765c02a69bb6a0726f78146c3689d

Contents?: true

Size: 370 Bytes

Versions: 5

Compression:

Stored size: 370 Bytes

Contents

Rails.application.routes.draw do

  post '/sign_in' => 'sessions#developer'

  get '/authenticated' => "authenticated#index"

  authenticate do
    get '/authenticated_by_route_constraint' => 'unauthenticated#index'
  end

  authenticate lambda { |user| false } do
    get '/authenticated_by_route_constraint_which_blocks_all_users' => 'unauthenticated#index'
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
foyer-0.2.0 spec/dummy/config/routes.rb
foyer-0.1.3 spec/dummy/config/routes.rb
foyer-0.1.2 spec/dummy/config/routes.rb
foyer-0.1.1 spec/dummy/config/routes.rb
foyer-0.1.0 spec/dummy/config/routes.rb