NamespacedGenerator
# File lib/generators/model.rb, line 6 def self.source_root File.join(super, 'component', 'model') end
# File lib/generators/model.rb, line 44 def after_generation STDOUT.puts "\n\nDon't forget to add model tests first." end
# File lib/generators/model.rb, line 36 def attributes? self.attributes && !self.attributes.empty? end
# 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.