Skip to content

Commit

Permalink
Fixed broken Sequel generator
Browse files Browse the repository at this point in the history
Signed-off-by: Michael S. Klishin <[email protected]>
  • Loading branch information
hipertracker authored and michaelklishin committed Sep 13, 2008
1 parent df6e83e commit 579436e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions merb_sequel/lib/generators/model.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
Merb::Generators::ModelGenerator.template :model_sequel, :orm => :sequel do |y|
Merb::Generators::ModelGenerator.template :model_sequel, :orm => :sequel 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 => :sequel do |generator|
generator.new(destination_root, options.merge(:model => true), file_name, attributes)
end
end

0 comments on commit 579436e

Please sign in to comment.