mirror of
https://github.com/heartcombo/devise.git
synced 2022-11-09 12:18:31 -05:00
Use ResourceHelpers so we get a warning in case someone passes a plural name, closes #1651.
This commit is contained in:
parent
aa36719bd9
commit
a0eff85d73
2 changed files with 3 additions and 1 deletions
|
@ -1,7 +1,7 @@
|
|||
PATH
|
||||
remote: .
|
||||
specs:
|
||||
devise (2.0.0)
|
||||
devise (2.0.1)
|
||||
bcrypt-ruby (~> 3.0)
|
||||
orm_adapter (~> 0.0.3)
|
||||
railties (~> 3.1)
|
||||
|
|
|
@ -1,6 +1,8 @@
|
|||
module Devise
|
||||
module Generators
|
||||
class DeviseGenerator < Rails::Generators::NamedBase
|
||||
include Rails::Generators::ResourceHelpers
|
||||
|
||||
namespace "devise"
|
||||
source_root File.expand_path("../templates", __FILE__)
|
||||
|
||||
|
|
Loading…
Reference in a new issue