lib/generators/clearance/routes/templates/routes.rb in clearance-1.11.0 vs lib/generators/clearance/routes/templates/routes.rb in clearance-1.12.0
- old
+ new
@@ -1,12 +1,12 @@
-resources :passwords, controller: "clearance/passwords", only: [:create, :new]
-resource :session, controller: "clearance/sessions", only: [:create]
+ resources :passwords, controller: "clearance/passwords", only: [:create, :new]
+ resource :session, controller: "clearance/sessions", only: [:create]
-resources :users, controller: "clearance/users", only: [:create] do
- resource :password,
- controller: "clearance/passwords",
- only: [:create, :edit, :update]
-end
+ resources :users, controller: "clearance/users", only: [:create] do
+ resource :password,
+ controller: "clearance/passwords",
+ only: [:create, :edit, :update]
+ end
-get "/sign_in" => "clearance/sessions#new", as: "sign_in"
-delete "/sign_out" => "clearance/sessions#destroy", as: "sign_out"
-get "/sign_up" => "clearance/users#new", as: "sign_up"
+ get "/sign_in" => "clearance/sessions#new", as: "sign_in"
+ delete "/sign_out" => "clearance/sessions#destroy", as: "sign_out"
+ get "/sign_up" => "clearance/users#new", as: "sign_up"