Changes
-
Ruby 3+ and Rails 7+ are required
-
Changed inline templates interface:
# BEFORE: def method_with_a_template a = "foo" erb # <div><%= a %></div> end # AFTER: def method_with_a_template a = "foo" erb(a:) { "<div><%= a %></div>" } end
Ruby 3+ and Rails 7+ are required
Changed inline templates interface:
# BEFORE:
def method_with_a_template
a = "foo"
erb
# <div><%= a %></div>
end
# AFTER:
def method_with_a_template
a = "foo"
erb(a:) { "<div><%= a %></div>" }
end