Merb::Generators::ModelGenerator

Public Class Methods

source_root() click to toggle source
   # File lib/generators/model.rb, line 6
6:     def self.source_root
7:       File.join(super, 'component', 'model')
8:     end

Public Instance Methods

after_generation() click to toggle source
    # File lib/generators/model.rb, line 44
44:     def after_generation
45:       STDOUT.puts "\n\nDon't forget to add model tests first."
46:     end
attributes?() click to toggle source
    # File lib/generators/model.rb, line 36
36:     def attributes?
37:       self.attributes && !self.attributes.empty?
38:     end
attributes_for_accessor() click to toggle source
    # File lib/generators/model.rb, line 40
40:     def attributes_for_accessor
41:       self.attributes.keys.map{|a| ":#{a}" }.compact.uniq.join(", ")
42:     end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.