Sha256: d6ace778de72f37c4a8f4414d3f8082db3e753d22a061e83dad7b44ba230771c

Contents?: true

Size: 329 Bytes

Versions: 10

Compression:

Stored size: 329 Bytes

Contents

require 'action_view/helpers/rendering_helper'

ActionView::Helpers::RenderingHelper.module_eval do
  def render_with_update options = {}, locals = {}, &block
    if options == :update
      update_page(&block)
    else
      render_without_update options, locals, &block
    end
  end

  alias_method_chain :render, :update
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
eita-jrails-0.10.1 lib/jrails/rendering.rb
eita-jrails-0.10.0 lib/jrails/rendering.rb
eita-jrails-0.9.8 lib/jrails/rendering.rb
eita-jrails-0.9.7 lib/jrails/rendering.rb
eita-jrails-0.9.6 lib/jrails/rendering.rb
eita-jrails-0.9.5 lib/jrails/rendering.rb
eita-jrails-0.9.4 lib/jrails/rendering.rb
eita-jrails-0.9.3 lib/jrails/rendering.rb
eita-jrails-0.9.2 lib/jrails/rendering.rb
eita-jrails-0.9.1 lib/jrails/rendering.rb