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

Version Path
elucid-merb_activerecord-1.1.0.pre lib/generators/model.rb
merb_activerecord-0.9.12 lib/generators/model.rb
merb_activerecord-0.9.13 lib/generators/model.rb
merb_activerecord-0.9.10 lib/generators/model.rb
merb_activerecord-0.9.11 lib/generators/model.rb
merb_activerecord-0.9.7 lib/generators/model.rb
merb_activerecord-0.9.9 lib/generators/model.rb
merb_activerecord-1.0.0.1 lib/generators/model.rb
merb_activerecord-0.9.8 lib/generators/model.rb
merb_activerecord-1.0.0 lib/generators/model.rb