Sha256: dfd4f38cd5f86374e03f14a3dacee27681719ed6221953a7d0465c2c3b0d1a58
Contents?: true
Size: 612 Bytes
Versions: 1
Compression:
Stored size: 612 Bytes
Contents
require 'rails/generators/base' module ExperimentLight module Generators class InstallToggleGenerator < Rails::Generators::Base source_root File.expand_path('../../templates', __FILE__) desc 'Copy experiment_sample.yml files to your application.' def copy_initializer copy_file 'experiments_controller.rb', 'app/controllers/experiments_controller.rb' copy_file 'index.html.erb', 'app/views/experiments/index.html.erb' route "get 'experiments' => 'experiments#index'" route "post 'update_experiment' => 'experiments#update'" end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
experiment_light-0.3.0 | lib/generators/experiment_light/install_toggle_generator.rb |