Class: Oxd::Generators::ConfigGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/generators/oxd/config_generator.rb

Overview

class to generate oxd config file through “rails generate” command

Examples:

rails generate oxd:config

Instance Method Summary collapse

Instance Method Details

#copy_config_fileObject

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