Class: SwitchUser::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- SwitchUser::Generators::InstallGenerator
- Defined in:
- lib/generators/switch_user/install/install_generator.rb
Constant Summary collapse
- TEMPLATES_PATH =
File.('templates', __dir__)
Instance Method Summary collapse
Instance Method Details
#install_initializer ⇒ Object
9 10 11 |
# File 'lib/generators/switch_user/install/install_generator.rb', line 9 def install_initializer copy_file "#{TEMPLATES_PATH}/switch_user.rb", 'config/initializers/switch_user.rb' end |