Class: ActionDispatch::Routing::Mapper
- Inherits:
-
Object
- Object
- ActionDispatch::Routing::Mapper
- Defined in:
- lib/authegy/rails/routes.rb
Instance Method Summary collapse
Instance Method Details
#authegy_routes(options = {}) ⇒ Object
5 6 7 8 9 10 11 12 13 14 15 |
# File 'lib/authegy/rails/routes.rb', line 5 def authegy_routes( = {}) # Remove the keys that would interfere with the authegy way: .extract! :class_name, # We'll only use 'User' :path, # All devise paths available from root :singular # No 'resource name' required default_path_names = { sign_in: 'sign-in', sign_out: 'sign-out' } .reverse_merge! path: '/', path_names: default_path_names devise_for :users, end |