Class: LazyGoogleAnalytics::InstallGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- LazyGoogleAnalytics::InstallGenerator
- Defined in:
- lib/generators/lazy_google_analytics/install/install_generator.rb
Instance Method Summary collapse
-
#copy_initializer ⇒ Object
class_option :orm.
- #show_readme ⇒ Object
Instance Method Details
#copy_initializer ⇒ Object
class_option :orm
11 12 13 14 |
# File 'lib/generators/lazy_google_analytics/install/install_generator.rb', line 11 def copy_initializer say_status("installing", "Lazy google analytics", :green) copy_file "lazy_google_analytics.rb.erb", "config/initializers/lazy_google_analytics.rb" end |
#show_readme ⇒ Object
16 17 18 |
# File 'lib/generators/lazy_google_analytics/install/install_generator.rb', line 16 def show_readme readme "README" if behavior == :invoke end |