Parent

Merb::Generators::ModelGenerator

Public Class Methods

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

Public Instance Methods

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

[Validate]

Generated with the Darkfish Rdoc Generator 2.