Last active
August 29, 2015 14:09
-
-
Save talbright/96b28d31845e50d6fd1a to your computer and use it in GitHub Desktop.
Rails: check for fragment key outside of controller
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
action_base = ActionController::Base.new | |
key = "en/handlebars_ticket_filter_show_v2/ssl:false" | |
action_base.fragment_exist?(key) | |
action_base.read_fragment(key) | |
action_base.fragment_cache_key(key) # shows how Rails modifies the key before storage see ActiveSupport::Cache.expand_cache_key |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment