moving_window 2.0.2 → 2.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/moving_window.rb +2 -1
- metadata +1 -1
data/lib/moving_window.rb
CHANGED
@@ -13,7 +13,8 @@ class MovingWindow
|
|
13
13
|
|
14
14
|
def filter(scope, params = {})
|
15
15
|
column, qualifier = parse(params)
|
16
|
-
scope.
|
16
|
+
t = scope.table_name
|
17
|
+
scope.where(["#{t}.#{column} #{qualifier} ? and ?", *timestamps])
|
17
18
|
end
|
18
19
|
|
19
20
|
private
|