simply re-organize little piece of code (cleaning stuff)
This commit is contained in:
parent
6350652e4b
commit
fbcda9cdd6
@ -113,10 +113,10 @@ GEM
|
||||
sass (~> 3.1)
|
||||
compass-rails (1.0.2)
|
||||
compass (>= 0.12.0, < 0.14)
|
||||
cucumber (1.2.0)
|
||||
cucumber (1.2.1)
|
||||
builder (>= 2.1.2)
|
||||
diff-lcs (>= 1.1.3)
|
||||
gherkin (~> 2.10.0)
|
||||
gherkin (~> 2.11.0)
|
||||
json (>= 1.4.6)
|
||||
cucumber-rails (1.3.0)
|
||||
capybara (>= 1.1.2)
|
||||
@ -167,7 +167,7 @@ GEM
|
||||
formtastic (2.0.2)
|
||||
rails (~> 3.0)
|
||||
fssm (0.2.9)
|
||||
gherkin (2.10.0)
|
||||
gherkin (2.11.0)
|
||||
json (>= 1.4.6)
|
||||
haml (3.1.6)
|
||||
highline (1.6.12)
|
||||
|
@ -1,7 +1,13 @@
|
||||
Locomotive::Engine.routes.draw do
|
||||
|
||||
# authentication
|
||||
devise_for :locomotive_account, :class_name => 'Locomotive::Account', :path => '', :path_prefix => nil, :failure_app => 'Locomotive::Devise::FailureApp',:controllers => { :sessions => 'locomotive/sessions', :passwords => 'locomotive/passwords' }
|
||||
devise_for :locomotive_account,
|
||||
:class_name => 'Locomotive::Account',
|
||||
:path => '',
|
||||
:path_prefix => nil,
|
||||
:failure_app => 'Locomotive::Devise::FailureApp',
|
||||
:controllers => { :sessions => 'locomotive/sessions', :passwords => 'locomotive/passwords' }
|
||||
|
||||
devise_scope :locomotive_account do
|
||||
match '/' => 'sessions#new'
|
||||
delete 'signout' => 'sessions#destroy', :as => :destroy_locomotive_session
|
||||
|
@ -3,6 +3,7 @@ require 'mongoid/railtie'
|
||||
require 'mongoid/tree'
|
||||
require 'devise'
|
||||
require 'devise/orm/mongoid'
|
||||
require 'devise-encryptable'
|
||||
require 'kaminari'
|
||||
require 'haml'
|
||||
require 'liquid'
|
||||
|
@ -1,2 +1 @@
|
||||
# patches for devise here
|
||||
require 'devise-encryptable'
|
||||
|
Loading…
Reference in New Issue
Block a user