lib/cached_resource/caching.rb in cached_resource-4.2.0 vs lib/cached_resource/caching.rb in cached_resource-5.0.0
- old
+ new
@@ -4,10 +4,11 @@
module Caching
extend ActiveSupport::Concern
included do
class << self
- alias_method_chain :find, :cache
+ alias_method :find_without_cache, :find
+ alias_method :find, :find_with_cache
end
end
module ClassMethods
# Find a resource using the cache or resend the request