Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1 @@
This fork provides thoroughly untested and unsupport Rails 5 compatability for `prototype-rails`.
This fork provides thoroughly untested and unsupport Rails 7 compatability for `prototype-rails`.
1 change: 1 addition & 0 deletions lib/prototype-rails/on_load_action_controller.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
require 'prototype-rails/selector_assertions'
require 'prototype-rails/renderers'
require 'prototype-rails/update_rendering'
16 changes: 16 additions & 0 deletions lib/prototype-rails/update_rendering.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
require 'action_controller/metal/rendering'

module ActionController::Rendering::UpdateRendering

private

# Normalize arguments by catching blocks and setting them on :update.
# Copied from rails 6
def _normalize_args(action = nil, options = {}, &blk)
options = super
options[:update] = blk if block_given?
options
end
end

ActionController::Rendering.include ActionController::Rendering::UpdateRendering