Class: ROM::Generators::FormGenerator

Inherits:
Base
  • Object
show all
Defined in:
lib/generators/rom/form_generator.rb

Instance Method Summary collapse

Methods inherited from Base

base_name, namespace, source_root

Instance Method Details

#create_commandObject



10
11
12
13
14
15
# File 'lib/generators/rom/form_generator.rb', line 10

def create_command
  type = edit_or_new

  template "#{type}_form.rb.erb",
    File.join("app", "forms", "#{type}_#{file_name.singularize}_form.rb")
end