Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Moved routes into the engine

  • Loading branch information...
commit 0c9d5141f3020565cfb817dd946e6e0bfa94c890 1 parent 93ae85d
@jferris jferris authored
View
5 config/routes.rb
@@ -0,0 +1,5 @@
+ActionController::Routing::Routes.draw do |map|
+ map.resources :passwords
+ map.resource :session
+ map.resources :users, :has_one => [:password, :confirmation]
+end
View
4 generators/clearance/clearance_generator.rb
@@ -15,10 +15,6 @@ def manifest
m.directory File.join("test", "factories")
m.file "factories.rb", "test/factories/clearance.rb"
- m.route_resources ':passwords'
- m.route_resource ':session'
- m.route_resources ':users, :has_one => [:password, :confirmation]'
-
m.migration_template "migrations/#{migration_name}.rb",
'db/migrate',
:migration_file_name => "clearance_#{migration_name}"
View
3  test/rails_root/config/routes.rb
@@ -1,7 +1,4 @@
ActionController::Routing::Routes.draw do |map|
- map.resources :users, :has_one => [:password, :confirmation]
- map.resources :passwords
- map.resource :session
map.resource :account
map.root :controller => 'accounts', :action => 'edit'
Please sign in to comment.
Something went wrong with that request. Please try again.