Sha256: ccd8dd7ec3f60349bb88f38821d6abdf74bc2fb9b96be4b0384ce40fdb7a95a6
Contents?: true
Size: 467 Bytes
Versions: 21
Compression:
Stored size: 467 Bytes
Contents
require 'rails/generators' module Stitches class AddDeprecationGenerator < Rails::Generators::Base source_root(File.expand_path(File.join(File.dirname(__FILE__),"generator_files"))) desc "Adds deprecation support to an app creates with an older version of stitches" def add_deprecation inject_into_file "app/controllers/api/api_controller.rb", after: /^class.*$/ do<<-CODE include Stitches::Deprecation CODE end end end end
Version data entries
21 entries across 21 versions & 1 rubygems