Class: Stitches::AddDeprecationGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/stitches/add_deprecation_generator.rb

Instance Method Summary collapse

Instance Method Details

#add_deprecationObject



8
9
10
11
12
13
14
# File 'lib/stitches/add_deprecation_generator.rb', line 8

def add_deprecation
  inject_into_file "app/controllers/api/api_controller.rb", after: /^class.*$/ do<<-CODE

  include Stitches::Deprecation
  CODE
  end
end