Skip to content

Instantly share code, notes, and snippets.

@talbright
Last active August 29, 2015 14:09

Revisions

  1. talbright revised this gist Nov 14, 2014. 1 changed file with 4 additions and 2 deletions.
    6 changes: 4 additions & 2 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    action_base = ActionController::Base.new
    action_base.fragment_exist?("en/handlebars_ticket_filter_show_v2/ssl:false")
    action_base.read_fragment("en/handlebars_ticket_filter_show_v2/ssl:false")
    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
  2. talbright created this gist Nov 14, 2014.
    3 changes: 3 additions & 0 deletions gistfile1.rb
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,3 @@
    action_base = ActionController::Base.new
    action_base.fragment_exist?("en/handlebars_ticket_filter_show_v2/ssl:false")
    action_base.read_fragment("en/handlebars_ticket_filter_show_v2/ssl:false")