lib/padrino-gen/generators/model.rb in padrino-gen-0.10.3 vs lib/padrino-gen/generators/model.rb in padrino-gen-0.10.4
- old
+ new
@@ -1,14 +1,17 @@
module Padrino
module Generators
-
+ ##
+ # Responsible for generating new models for the specified ORM component within a project or application.
+ #
class Model < Thor::Group
# Add this generator to our padrino-gen
Padrino::Generators.add_generator(:model, self)
# Define the source template root
def self.source_root; File.expand_path(File.dirname(__FILE__)); end
+ # Defines the banner for this CLI generator
def self.banner; "padrino-gen model [name] [fields]"; end
# Include related modules
include Thor::Actions
include Padrino::Generators::Actions