From 0d1dae76e0165baaf3bdca4ffdaae85fcb588974 Mon Sep 17 00:00:00 2001 From: Eric Binmore Date: Thu, 20 May 2021 12:28:49 -0400 Subject: [PATCH 1/2] Update template to Rails 6 format --- lib/action_view/template/handlers/rjs.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/action_view/template/handlers/rjs.rb b/lib/action_view/template/handlers/rjs.rb index a5e50c9..233d10d 100644 --- a/lib/action_view/template/handlers/rjs.rb +++ b/lib/action_view/template/handlers/rjs.rb @@ -5,8 +5,8 @@ class RJS class_attribute :default_format self.default_format = :js - def call(template) - "update_page do |page|;#{template.source}\nend" + def call(template, source) + "update_page do |page|;#{source}\nend" end end end From 7c5acd2ab66d47259df86c5f76c69eb3a95cfdd3 Mon Sep 17 00:00:00 2001 From: Eric Binmore Date: Thu, 20 May 2021 12:29:06 -0400 Subject: [PATCH 2/2] Update version --- prototype-rails.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/prototype-rails.gemspec b/prototype-rails.gemspec index 5f41537..cf4e2be 100644 --- a/prototype-rails.gemspec +++ b/prototype-rails.gemspec @@ -1,6 +1,6 @@ Gem::Specification.new do |spec| spec.name = 'prototype-rails' - spec.version = '4.1.4' + spec.version = '4.2.0' spec.summary = 'Prototype, Scriptaculous, and RJS for Ruby on Rails' spec.homepage = 'http://github.com/rails/prototype-rails' spec.author = 'Xavier Noria'