Sha256: b8ecfbd0f944a15162cbf9b230cd151f6d4829fabcab13b72363baa21171ba32
Contents?: true
Size: 426 Bytes
Versions: 10
Compression:
Stored size: 426 Bytes
Contents
Merb::Generators::ModelGenerator.template :model_activerecord, :orm => :activerecord do |t| t.source = File.dirname(__FILE__) / "templates/model/app/models/%file_name%.rb" t.destination = "app/models" / base_path / "#{file_name}.rb" end Merb::Generators::ModelGenerator.invoke :migration, :orm => :activerecord do |generator| generator.new(destination_root, options.merge(:model => true), file_name, attributes) end
Version data entries
10 entries across 10 versions & 2 rubygems