Skip to content

Commit

Permalink
Merge pull request #3 from NickLaMuro/rails-6
Browse files Browse the repository at this point in the history
Updates for Rails 6.0
  • Loading branch information
Fryguy authored Nov 23, 2020
2 parents ded3d28 + 1b33682 commit 476e0ae
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lib/action_view/template/handlers/rjs.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ class RJS
class_attribute :default_format
self.default_format = Mime[:js]

def call(template)
"update_page do |page|;#{template.source}\nend"
def call(template, source=nil)
source ||= template.source
"update_page do |page|;#{source}\nend"
end
end
end
Expand Down

0 comments on commit 476e0ae

Please sign in to comment.