- Inheritance
- < Rails::Generator::Commands::RewindBase < Rails::Generator::Commands::Base < DelegateClass(Rails::Generator::Base)
Undo the actions performed by a generator. Rewind the action manifest and attempt to completely erase the results of each action.
Methods
Instance
Visibility | Signature |
---|---|
public | complex_template (*args) |
public | directory (relative_path) |
public | file (relative_source, relative_destination, file_options = {}) |
public | migration_template (relative_source, relative_destination, template_options = {}) |
public | route_resources (*resources) |
public | template (relative_source, relative_destination, file_options = {}) |
Instance Method Detail
complex_template(*args)
directory(relative_path)
Remove each directory in the given path from right to left. Remove each subdirectory if it exists and is a directory.
file(relative_source, relative_destination, file_options = {})
migration_template(relative_source, relative_destination, template_options = {})
When deleting a migration, it knows to delete every file named "[0-9]*_#{file_name}".
route_resources(*resources)
template(relative_source, relative_destination, file_options = {})
Alias for file