Module Lightrail::Generator::Commands::Create
In: lib/lightrail/commands.rb

Methods

Public Instance methods

Copies all of the files that exist in the plugin from the main app to the plugin

Copies all controllers, models, helpers and initializers to the main app

This won‘t work with my current setup Loops through all of the migrations Copies them to the main app‘s migration directory Names them according to the sequence in the main app‘s migrate directory

Copies all views to the main app

Used in the lightrail_destroy_files generator Basically just calls the destroy method from the generate method so files can only ever be deleted

When creating a migration, it knows to find the first available file in db/migrate and use the migration.rb template.

Used by the lighrail_clone_model generator Takes a model and makes the necessary adjustments to it in order to make it a suitable lightrail base class Adds the namespace, and adds a set_table_name

[Validate]