lib/kasket.rb in kasket-4.10.4 vs lib/kasket.rb in kasket-4.11.0
- old
+ new
@@ -29,14 +29,11 @@
CONFIGURATION[:max_collection_size] = options[:max_collection_size] if options[:max_collection_size]
CONFIGURATION[:write_through] = options[:write_through] if options[:write_through]
CONFIGURATION[:default_expires_in] = options[:default_expires_in] if options[:default_expires_in]
ActiveRecord::Base.extend(Kasket::ConfigurationMixin)
-
- if defined?(ActiveRecord::Relation)
- ActiveRecord::Relation.include Kasket::RelationMixin
- Arel::SelectManager.include Kasket::SelectManagerMixin
- end
+ ActiveRecord::Relation.include(Kasket::RelationMixin)
+ Arel::SelectManager.include(Kasket::SelectManagerMixin)
end
def self.cache_store=(options)
@cache_store = ActiveSupport::Cache.lookup_store(options)
end