diff --git a/lib/rabl/helpers.rb b/lib/rabl/helpers.rb index 02cc1e77..d496fab2 100644 --- a/lib/rabl/helpers.rb +++ b/lib/rabl/helpers.rb @@ -92,7 +92,7 @@ def fetch_result_from_cache(cache_key, cache_options=nil, &block) # Returns true if the cache has been enabled for the application def template_cache_configured? - defined?(Rails) && defined?(ActionController) && ActionController::Base.perform_caching + defined?(Rails) && defined?(ActionController::Base) && ActionController::Base.perform_caching end # Escape output if configured and supported