require 'cache_key_for/cache_key_for_helper' require 'cache_key_for/cache_key_for_view_helper' module CacheKeyFor # class Railtie < Rails::Railtie initializer 'cache_key_for.helper' do ActionView::Base.send :include, CacheKeyForHelper end initializer 'cache_key_for_view.helper' do ActionView::Base.send :include, CacheKeyForViewHelper end end end