Sha256: 8b1f86c02a4e6fe63768312c2315bee837b37361bd7c926da2be4acf0ccba093
Contents?: true
Size: 403 Bytes
Versions: 2
Compression:
Stored size: 403 Bytes
Contents
module Linguo class ConfigGenerator < Rails::Generators::Base desc "Creates a configuration file at config/initializers/linguo.rb" # Creates a configuration file at <tt>config/initializers/linguo.rb</tt> # when running <tt>rails g linguo:config</tt>. def create_linguo_file create_file 'config/initializers/linguo.rb', "Linguo.api_key = ENV['LINGUO_API_KEY']" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
linguo-0.0.2 | lib/rails/generators/linguo/config_generator.rb |
linguo-0.0.1 | lib/rails/generators/linguo/config_generator.rb |