Class: Headmin::DeviseGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Headmin::DeviseGenerator
- Includes:
- Rails::Generators::Migration
- Defined in:
- lib/generators/headmin/devise_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_controllers ⇒ Object
7 8 9 |
# File 'lib/generators/headmin/devise_generator.rb', line 7 def copy_controllers directory "controllers/auth", "app/controllers/auth" end |
#copy_views ⇒ Object
11 12 13 14 |
# File 'lib/generators/headmin/devise_generator.rb', line 11 def copy_views directory "views/auth", "app/views/auth" copy_file "views/layouts/auth.html.erb", "app/views/layouts/auth.html.erb" end |