Class: Devise::Generators::DeviseGenerator
- Inherits:
-
Rails::Generators::NamedBase
- Object
- Rails::Generators::NamedBase
- Devise::Generators::DeviseGenerator
- Defined in:
- lib/generators/devise/devise_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_devise_routes ⇒ Object
14 15 16 17 18 19 |
# File 'lib/generators/devise/devise_generator.rb', line 14 def add_devise_routes devise_route = "devise_for :#{plural_name}" devise_route << %Q(, :class_name => "#{class_name}") if class_name.include?("::") devise_route << %Q(, :skip => :all) unless .routes? route devise_route end |