Sha256: f23adaf7969563e5cd72fc1ca2d175ec90c5d2fcee7eb2367f6c88db58489455
Contents?: true
Size: 509 Bytes
Versions: 2
Compression:
Stored size: 509 Bytes
Contents
require 'rails/generators' module Spreeference::Generators class InstallGenerator < Rails::Generators::Base source_root File.expand_path("../../templates", __FILE__) desc 'Add app_configuration.rb' def copy_app_configuration_file copy_file "app_configuration.rb", "app/models/app_configuration.rb" end desc 'Add Spreeference configuration in initializers' def copy_configuration_file copy_file "spreeference.rb", "config/initializers/spreeference.rb" end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
spreeference-0.1.1 | lib/generators/spreeference/install_generator.rb |
spreeference-0.1.0 | lib/generators/spreeference/install_generator.rb |