lib/date_supercharger.rb in date_supercharger-0.0.1 vs lib/date_supercharger.rb in date_supercharger-0.0.2
- old
+ new
@@ -14,10 +14,10 @@
singleton_class.class_eval do
define_method("#{match.attribute}_#{match.suffix}") do |date|
where("#{match.attribute} #{operators[match.suffix]} ?", date)
end
end
- send(method_sym, arguments.first)
+ send(method_sym, *arguments)
else
super
end
end