Class: RnotifierGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- RnotifierGenerator
- Defined in:
- lib/generators/rnotifier/rnotifier_generator.rb
Instance Method Summary collapse
Instance Method Details
#add_config ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/generators/rnotifier/rnotifier_generator.rb', line 6 def add_config if [:api_key] template 'initializer.rb', 'config/initializers/rnotifier.rb' else p 'Set option --api-key or -k.' end end |