Skip to content

Commit 740f701

Browse files
authored
Merge pull request #2 from voxmedia/eb-rails-6-upgrade
Rails 6 Upgrade Part X: `template` & `sources not `template.source`
2 parents 127d279 + 7c5acd2 commit 740f701

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

lib/action_view/template/handlers/rjs.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ class RJS
55
class_attribute :default_format
66
self.default_format = :js
77

8-
def call(template)
9-
"update_page do |page|;#{template.source}\nend"
8+
def call(template, source)
9+
"update_page do |page|;#{source}\nend"
1010
end
1111
end
1212
end

prototype-rails.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Gem::Specification.new do |spec|
22
spec.name = 'prototype-rails'
3-
spec.version = '4.1.4'
3+
spec.version = '4.2.0'
44
spec.summary = 'Prototype, Scriptaculous, and RJS for Ruby on Rails'
55
spec.homepage = 'http://github.com/rails/prototype-rails'
66
spec.author = 'Xavier Noria'

0 commit comments

Comments
 (0)