Skip to content

Commit

Permalink
- fix typo of "initializers" and update devise orm pattern
Browse files Browse the repository at this point in the history
- generate the User model using mongo_mapper's generator
  • Loading branch information
sr3d committed Mar 21, 2011
1 parent 4f663b5 commit 65b6938
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions recipes/devise.rb
Expand Up @@ -5,9 +5,10 @@

if recipes.include? 'mongo_mapper'
gem 'mm-devise'
gsub_file 'config/intializers/devise.rb', 'devise/orm/active_record', 'devise/orm/mongo_mapper_active_model'
gsub_file 'config/initializers/devise.rb', 'devise/orm/', 'devise/orm/mongo_mapper_active_model'
generate 'mongo_mapper:devise User'
elsif recipes.include? 'mongoid'
gsub_file 'config/intializers/devise.rb', 'devise/orm/active_record', 'devise/orm/mongoid'
gsub_file 'config/initializers/devise.rb', 'devise/orm/active_record', 'devise/orm/mongoid'
end

generate 'devise user'
Expand Down

0 comments on commit 65b6938

Please sign in to comment.