Skip to content

Commit

Permalink
Merge pull request #2 from voxmedia/eb-rails-6-upgrade
Browse files Browse the repository at this point in the history
Rails 6 Upgrade Part X: `template` & `sources not `template.source`
  • Loading branch information
ebinmore committed May 20, 2021
2 parents 127d279 + 7c5acd2 commit 740f701
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/action_view/template/handlers/rjs.rb
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion 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'
Expand Down

0 comments on commit 740f701

Please sign in to comment.