rails-cache-extended 1.0.0 → 1.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,8 +3,8 @@ require 'rails/cache/version'
3
3
  module ActiveRecord
4
4
  class Base
5
5
  def self.cache_key
6
- Digest::MD5.hexdigest "#{scoped.maximum(:updated_at).try(:to_i)}-#{scoped.count}"
6
+ Digest::MD5.hexdigest "#{where(nil).maximum(:updated_at).try(:to_i)}-#{where(nil).count}"
7
7
  #scoped.select("md5(COALESCE(date_part('epoch', MAX(updated_at))::char, '') || '-' || COUNT(*)) AS collection_cache_key").first.collection_cache_key
8
8
  end
9
9
  end
10
- end
10
+ end
@@ -1,3 +1,3 @@
1
1
  module CacheExtended
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-cache-extended
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: