Sha256: bfa4373fdeeb2e5092e49df775afbd93437ae8208e579441d7c837ffb1533e73

Contents?: true

Size: 239 Bytes

Versions: 4

Compression:

Stored size: 239 Bytes

Contents

require_dependency "renalware"

module Renalware
  module XHRHelper
    def refresh(el, partial:, locals:)
      <<-EOS.squish.html_safe
        $("#{el}").html("#{escape_javascript(render(partial, locals))}");
      EOS
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
renalware-core-2.0.0.pre.beta7 app/helpers/renalware/xhr_helper.rb
renalware-core-2.0.0.pre.beta6 app/helpers/renalware/xhr_helper.rb
renalware-core-2.0.0.pre.beta5 app/helpers/renalware/xhr_helper.rb
renalware-core-2.0.0.pre.beta4 app/helpers/renalware/xhr_helper.rb