Skip to content

Commit

Permalink
Be more specific about the helpers cache check
Browse files Browse the repository at this point in the history
  • Loading branch information
nesquena committed May 9, 2012
1 parent 2474f96 commit ba90889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/rabl/helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ba90889

Please sign in to comment.