Class: PatchGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Defined in:
lib/generators/patch_me_in/patch_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_patch_fileObject



4
5
6
# File 'lib/generators/patch_me_in/patch_generator.rb', line 4

def create_patch_file
  template "patch.tt", "app/patches/#{file_name}_patch.rb"
end