diff --git a/lib/turnout/maintenance_page/erb.rb b/lib/turnout/maintenance_page/erb.rb index 24b3bcd..4d51d83 100644 --- a/lib/turnout/maintenance_page/erb.rb +++ b/lib/turnout/maintenance_page/erb.rb @@ -7,7 +7,7 @@ module MaintenancePage class Erb < Turnout::MaintenancePage::HTML def content - Tilt.new(File.expand_path(path)).render(nil, {reason: reason}.merge(@options)) + Tilt.new(File.expand_path(path)).render(self, {reason: reason}.merge(@options)) end def self.extension