heartcombo / devise

Flexible authentication solution for Rails with Warden.
http://blog.plataformatec.com.br/tag/devise/
MIT License
24k stars 5.55k forks source link

rails g devise model inside engine doesn't insert/create model method #1653

Closed jess closed 12 years ago

jess commented 12 years ago

When running rails g devise user inside a mountable engine, it doesn't insert

  devise :database_authenticatable, :registerable,
     :recoverable, :rememberable, :trackable, :validatable

into the user model.

I tried with no existing user model and with an existing user model.

Also tried rails g devise model EngineName::User with same result.

Using:

devise (2.0.2)
rails (3.2.1)

Let me know if I can help or did something wrong.

back2adam commented 12 years ago

I'm having the same problem and am getting this output when running rails g devise Profile:

  invoke  active_record
  create    db/migrate/20120424180038_devise_create_singles_profiles.rb
  (erb):15:in `template': undefined method `lock_strategy' for Devise:Module (NoMethodError)

And the migrations are blank.

rodrigoflores commented 12 years ago

Hi

I'm working on this and I should finish it on the next few days :)

josevalim commented 12 years ago

Fixed on master, thanks.