diff --git a/lib/squasher/render.rb b/lib/squasher/render.rb index 6aa5367..57e6326 100644 --- a/lib/squasher/render.rb +++ b/lib/squasher/render.rb @@ -14,7 +14,11 @@ def initialize(name, config) end def render - ERB.new(template("#{ name }.rb"), nil, '-').result(binding) + if RUBY_VERSION < '2.6' + ERB.new(template("#{ name }.rb"), nil, '-').result(binding) + else + ERB.new(template("#{ name }.rb"), trim_mode: '-').result(binding) + end end def each_schema_line(&block)