Class: Polivalente::Generators::ControllersGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Polivalente::Generators::ControllersGenerator
- Defined in:
- lib/generators/polivalente/controllers/controllers_generator.rb
Instance Method Summary collapse
Instance Method Details
#copy_devise_controller ⇒ Object
6 7 8 |
# File 'lib/generators/polivalente/controllers/controllers_generator.rb', line 6 def copy_devise_controller template "devise_controller.rb", "app/controllers/custom_devise_controller.rb" end |
#copy_user_omniauth_controller ⇒ Object
10 11 12 |
# File 'lib/generators/polivalente/controllers/controllers_generator.rb', line 10 def copy_user_omniauth_controller template "omniauth_controller.rb", "app/controllers/users/omniauth_callbacks_controller.rb" end |