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.
Files changed (2) hide show
  1. data/lib/moving_window.rb +2 -1
  2. 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.where(["#{column} #{qualifier} ? and ?", *timestamps])
16
+ t = scope.table_name
17
+ scope.where(["#{t}.#{column} #{qualifier} ? and ?", *timestamps])
17
18
  end
18
19
 
19
20
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moving_window
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: