-
-
Notifications
You must be signed in to change notification settings - Fork 467
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
convert to a rails 3 engines, routes, etc.
- Loading branch information
Chad Pytel
committed
Jun 9, 2010
1 parent
395b589
commit c347cd2
Showing
11 changed files
with
58 additions
and
78 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
Rails.application.routes.draw do |map| | ||
map.resources :passwords, | ||
:controller => 'clearance/passwords', | ||
:only => [:new, :create] | ||
|
||
map.resource :session, | ||
:controller => 'clearance/sessions', | ||
:only => [:new, :create, :destroy] | ||
|
||
map.resources :users, :controller => 'clearance/users' do |users| | ||
users.resource :password, | ||
:controller => 'clearance/passwords', | ||
:only => [:create, :edit, :update] | ||
|
||
users.resource :confirmation, | ||
:controller => 'clearance/confirmations', | ||
:only => [:new, :create] | ||
end | ||
|
||
map.sign_up 'sign_up', | ||
:controller => 'clearance/users', | ||
:action => 'new' | ||
map.sign_in 'sign_in', | ||
:controller => 'clearance/sessions', | ||
:action => 'new' | ||
map.sign_out 'sign_out', | ||
:controller => 'clearance/sessions', | ||
:action => 'destroy', | ||
:method => :delete | ||
end |
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
require "clearance" | ||
require "rails" | ||
|
||
module Clearance | ||
class Engine < Rails::Engine | ||
engine_name :clearance | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
class ClearanceFeaturesGenerator < Rails::Generators::Base | ||
desc "Put the clearance features in place" | ||
|
||
def self.source_root | ||
@_clearance_source_root ||= File.expand_path("../../../../../../../../../generators/clearance_features/templates", __FILE__) | ||
end | ||
|
||
def install | ||
directory "features" | ||
end | ||
end |
This file contains 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
This file contains 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
20 changes: 0 additions & 20 deletions
20
test/rails3_root/db/migrate/20100609194816_clearance_create_users.rb
This file was deleted.
Oops, something went wrong.
This file contains 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