Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fixed broken Sequel generator

Signed-off-by: Michael S. Klishin <michael@novemberain.com>
  • Loading branch information...
commit 579436e3fa6b9367dcc723851ffa88e208ab1cfe 1 parent df6e83e
@hipertracker hipertracker authored michaelklishin committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 merb_sequel/lib/generators/model.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.