Skip to content

Commit

Permalink
Merge pull request #35 from bogdanRada/master
Browse files Browse the repository at this point in the history
Use self instead of nil when rendering pages with Tilt (erb support)
  • Loading branch information
adamcrown committed May 21, 2016
2 parents 5c617d2 + d80f3ae commit fdc892f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/turnout/maintenance_page/erb.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit fdc892f

Please sign in to comment.