Class: Polivalente::Generators::ControllersGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/polivalente/controllers/controllers_generator.rb

Instance Method Summary collapse

Instance Method Details

#copy_devise_controllerObject



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_controllerObject



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