Class: Operations::Generators::ContractGenerator

Inherits:
Rails::Generators::NamedBase
  • Object
show all
Includes:
Base::Generators::BaseGenerator
Defined in:
lib/operations/generators/contract_generator.rb

Instance Method Summary collapse

Instance Method Details

#generate_filesObject



14
15
16
17
18
19
# File 'lib/operations/generators/contract_generator.rb', line 14

def generate_files
  super

  template "base/contract.rb.erb", "#{root_file_path}/operations/#{plural_name}/base/contract.rb"
  template "contract.rb.erb", "#{root_file_path}/operations/#{plural_name}/#{verb}/contract.rb"
end