Class: ROM::Generators::CommandsGenerator
- Inherits:
-
Base
- Object
- Rails::Generators::NamedBase
- Base
- ROM::Generators::CommandsGenerator
show all
- Defined in:
- lib/generators/rom/commands_generator.rb
Instance Method Summary
collapse
Methods inherited from Base
base_name, default_adapter, default_gateway, namespace, source_root
Instance Method Details
#create_create_command ⇒ Object
11
12
13
|
# File 'lib/generators/rom/commands_generator.rb', line 11
def create_create_command
template 'create.rb.erb', command_file(:create)
end
|
#create_delete_command ⇒ Object
19
20
21
|
# File 'lib/generators/rom/commands_generator.rb', line 19
def create_delete_command
template 'delete.rb.erb', command_file(:delete)
end
|
#create_update_command ⇒ Object
15
16
17
|
# File 'lib/generators/rom/commands_generator.rb', line 15
def create_update_command
template 'update.rb.erb', command_file(:update)
end
|