lib/sequel/model.rb in sequel-0.4.4.1 vs lib/sequel/model.rb in sequel-0.4.4.2

- old
+ new

@@ -254,10 +254,10 @@ end def self.[](*args) args = args.first if (args.size == 1) if args === true || args === false - raise SequelError, "Invalid filter specified. Did you mean to supply a hash?" + raise Error::InvalidFilter, "Did you mean to supply a hash?" end dataset[(Hash === args) ? args : primary_key_hash(args)] end def self.fetch(*args)