lib/generators/sequel.rb in talentbox-sequel-rails-0.3.3 vs lib/generators/sequel.rb in talentbox-sequel-rails-0.3.4
- old
+ new
@@ -36,10 +36,10 @@
def self.all(klass)
"#{klass}.all"
end
def self.find(klass, params=nil)
- "#{klass}[#{params}]"
+ "#{klass}.find!(#{params})"
end
def self.build(klass, params=nil)
if params
"#{klass}.new(#{params})"