Sha256: 1c417704444d9aee44cd6817992b9d3917204d5d6bdff4bb4081295923b178f2
Contents?: true
Size: 485 Bytes
Versions: 8
Compression:
Stored size: 485 Bytes
Contents
require 'rails/generators' module Stitches class UpdateConfigurationGenerator < Rails::Generators::Base include Rails::Generators::Migration source_root(File.expand_path(File.join(File.dirname(__FILE__),"generator_files"))) desc "Change your configuration to use 'allowlist' so you'll be ready for 4.x" def update_to_allowlist gsub_file "config/initializers/stitches.rb", /whitelist/, "allowlist" puts "🎉 You are now good to go!" end end end
Version data entries
8 entries across 8 versions & 1 rubygems