Class: Oxd::Generators::ConfigGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- Oxd::Generators::ConfigGenerator
- Defined in:
- lib/generators/oxd/config_generator.rb
Overview
class to generate oxd config file through “rails generate” command
Instance Method Summary collapse
-
#copy_config_file ⇒ Object
copies oxd_config.rb template to ‘config/initializers/oxd_config.rb’.
Instance Method Details
#copy_config_file ⇒ Object
copies oxd_config.rb template to ‘config/initializers/oxd_config.rb’
17 18 19 |
# File 'lib/generators/oxd/config_generator.rb', line 17 def copy_config_file template 'oxd_config.rb', 'config/initializers/oxd_config.rb' end |