lib/og/mixin/orderable.rb in og-0.22.0 vs lib/og/mixin/orderable.rb in og-0.23.0
- old
+ new
@@ -1,6 +1,6 @@
-require 'facet/macro'
+require 'mega/macro'
module Og
# Attach list/ordering methods to the enchanted class.
@@ -23,10 +23,10 @@
if scope
if scope.is_a?(Symbol)
scope = %{(#{scope} ? "#{scope} = \#{@#{scope}}" : "#{scope} IS NULL")}
end
- cond = 'condition => ' + scope
+ cond = ':condition => ' + scope
cond_and = ':condition => ' + scope + ' + " AND " +'
else
cond = ':condition => nil'
cond_and = ':condition => '
end