Class: RadarGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RadarGenerator
- Defined in:
- lib/radar/integration/rails3/generator.rb
Overview
Provides a generator to rails 3 to generate the initializer
file in config/initializers/radar.rb
. This class is not
scoped since Rails generates the generator scope based on
the Ruby scope (e.g. this allows the command to just be
"rails g radar" instead of "rails g radar:integrations:rails3:radar"
or some other crazy string).
Instance Method Summary collapse
Instance Method Details
#copy_initializer ⇒ Object
12 13 14 |
# File 'lib/radar/integration/rails3/generator.rb', line 12 def copy_initializer template "radar.rb", "config/initializers/radar.rb" end |
#show_readme ⇒ Object
16 17 18 |
# File 'lib/radar/integration/rails3/generator.rb', line 16 def show_readme readme "README" end |