Permalink
Browse files

Use ResourceHelpers so we get a warning in case someone passes a plur…

…al name, closes #1651.
  • Loading branch information...
1 parent aa36719 commit a0eff85d732f5af0c4f9ccd5bc0267e6097e017f @josevalim josevalim committed Feb 15, 2012
Showing with 3 additions and 1 deletion.
  1. +1 −1 Gemfile.lock
  2. +2 −0 lib/generators/devise/devise_generator.rb
View
@@ -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__)

0 comments on commit a0eff85

Please sign in to comment.