Last active
February 7, 2016 19:09
-
-
Save ch1ago/3b41235674ff8dc95fa6 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Rails.application.routes.draw do | |
# not_authenticated do | |
# get 'some/route' | |
# end | |
# | |
# authenticated do | |
# get 'some/route' | |
# | |
# current_user -> (u) { u.webmaster? } do | |
# mount Sidekiq::Web => '/sidekiq' | |
# mount RailsAdmin::Engine => '/webmaster' | |
# end | |
# | |
# current_user -> (u) { u.onboarding? } do | |
# get 'some/route' | |
# end | |
# | |
# current_user -> (u) { u.user? } do | |
# get 'some/route' | |
# end | |
# end | |
root to: 'root#index' | |
mount Hello::Engine => '/hello' | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment