Skip to content

Commit

Permalink
Updates the standard Devise modules (off of Bushido) to match the dat…
Browse files Browse the repository at this point in the history
…abase migrations
  • Loading branch information
sgrove committed Apr 11, 2012
1 parent 40d8add commit ede5d03
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions config/initializers/kandan.rb
Expand Up @@ -2,12 +2,14 @@
require file
end


module Kandan
def self.devise_modules
standard = [:database_authenticatable, :registerable, :confirmable,
:recoverable, :rememberable, :trackable, :validatable, :token_authenticatable]
bushido = [:bushido_authenticatable, :trackable, :token_authenticatable]

standard = [:database_authenticatable, :registerable,
:recoverable, :rememberable, :trackable, :validatable]

bushido = [:bushido_authenticatable, :trackable,
:token_authenticatable]

::Bushido::Platform.on_bushido? ? bushido : standard
end
Expand Down

0 comments on commit ede5d03

Please sign in to comment.