malavbhavsar/sentimentalizer

View on GitHub
lib/generators/sentimentalizer_generator.rb

Summary

Maintainability
A
0 mins
Test Coverage
class SentimentalizerGenerator < Rails::Generators::Base
  source_root File.expand_path("../templates", __FILE__)
  # all public methods in here will be run in order
  def add_my_initializer
    template "initializer.rb", "config/initializers/sentimentalizer_initializer.rb"
  end
end