module Gon module Helpers def self.included base base.send(:include, InstanceMethods) end module InstanceMethods def include_gon data = Rails.cache.read('gon_variables') || {} script = "" script.html_safe end end end end module ActionView::Helpers include Gon::Helpers end