Class: FetcheableOnApi::Generators::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- FetcheableOnApi::Generators::InstallGenerator
- Defined in:
- lib/generators/fetcheable_on_api/install_generator.rb
Overview
Rails generator for creating FetcheableOnApi initializer file.
This generator creates a configuration initializer file that allows developers to customize FetcheableOnApi settings for their application.
Instance Method Summary collapse
-
#copy_initializer ⇒ void
Copy the initializer template to the Rails application’s config/initializers directory.
Instance Method Details
#copy_initializer ⇒ void
This method returns an undefined value.
Copy the initializer template to the Rails application’s config/initializers directory. The generated file contains configuration options with sensible defaults and documentation about available settings.
22 23 24 25 |
# File 'lib/generators/fetcheable_on_api/install_generator.rb', line 22 def copy_initializer template 'fetcheable_on_api_initializer.rb', 'config/initializers/fetcheable_on_api.rb' end |