require 'taggable_cache/extensions'

module TaggableCache
  class Railtie < ::Rails::Railtie
    initializer "taggable_cache" do |app|
      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Base.send :include, TaggableCache::ActiveRecordExtension
        ::ActiveSupport::Cache::Store.send :include, TaggableCache::CacheStoreExtension
        ::ActionController::Base.send :include, TaggableCache::ActionControllerExtension        
      end
    end
  end  
end

require 'taggable_cache/extensions'

module TaggableCache
  class Railtie < ::Rails::Railtie
    initializer "taggable_cache" do |app|
      ActiveSupport.on_load(:active_record) do
        ::ActiveRecord::Base.send :include, TaggableCache::ActiveRecordExtension
        ::ActionController::Base.send :include, TaggableCache::ActionControllerExtension        

        ::ActiveSupport::Cache::Store.send :include, TaggableCache::CacheStoreExtension
        ::ActiveSupport::Cache::RedisStore.send :include, TaggableCache::CacheStoreExtension
      end
    end
  end  
end

Add additional hack to make it work with redis.
Add additional hack to make it work with redis.
