Permalink
Browse files

Fixed broken Sequel generator

Signed-off-by: Michael S. Klishin <michael@novemberain.com>
  • Loading branch information...
1 parent df6e83e commit 579436e3fa6b9367dcc723851ffa88e208ab1cfe @hipertracker hipertracker committed with michaelklishin Sep 13, 2008
Showing with 2 additions and 2 deletions.
  1. +2 −2 merb_sequel/lib/generators/model.rb
@@ -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.