services 7.0.0 → 7.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dff8b6c800a3b2ddd63f70e6f532f67bc96b6ad84433f82dddc38af9e3d5c8ca
4
- data.tar.gz: d55ac6170d97a46766ca49184469496f8e50e3c79f651cb35becf33ca312dfc7
3
+ metadata.gz: eb51ec8db2b413530af5cdc1c9a95cd81f3a519cd2492dd9664ab4254028520c
4
+ data.tar.gz: 3c140ae804c3a69105ce4d2ed1d7b0975e224a33a86afe9bd3c539d82ef23c54
5
5
  SHA512:
6
- metadata.gz: 30794a6468fb2d966a73690336230fb49f5ce33ef42cc70c18a04e30dddd8efc71c85d9eb07a0f52775c04baa6f2c5216bc290b7fa03d0373748e5549560aad6
7
- data.tar.gz: d61ca8f78c4d902bbb5b0ee7f697a3236e4526f6fc9b249fb24c1abf7bb052e429c59cf7f981f5c66509bcfba8d9501555226cb1652438b898513ae0fbd1db6b
6
+ metadata.gz: db4dc1a984b5c4e7aacbd9e88712b892cdbcd938101190283d68b93ec898261efab50c9cf634cb6ef4e432358e82039b1601be44bdebe4794a90c58b6ca863cd
7
+ data.tar.gz: 7bcdfb0ae02c57ffe370988bccbfbef46eaa29edf7a7475cefaa32dc08f667bd8f69828b24b269a9bdcc73d74f342e62b553b610e958e38a7cba3647e829c34f
@@ -70,7 +70,7 @@ module Services
70
70
  scope = scope.where.not(id: v)
71
71
  when /\Acreated_(before|after)\z/
72
72
  operator = $1 == 'before' ? '<' : '>'
73
- scope = scope.where("created_at #{operator} ?", v)
73
+ scope = scope.where("#{object_class.table_name}.created_at #{operator} ?", v)
74
74
  when :order
75
75
  next unless v
76
76
  case v
@@ -1,3 +1,3 @@
1
1
  module Services
2
- VERSION = '7.0.0'.freeze
2
+ VERSION = '7.0.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: services
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 7.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Meurer