Sha256: 6d5ea082201939e9f1f15e2c3b07e4adf39c984b220358ff9115bc37ca114a3d
Contents?: true
Size: 464 Bytes
Versions: 4
Compression:
Stored size: 464 Bytes
Contents
require "erb" module DebugExtras class DebugPage def initialize(exception, request_path) @exception = exception @request_path = request_path end def render template = File.read(File.expand_path("../templates/debug.html.erb", __FILE__)) styles = File.read(File.expand_path("../templates/styles.html", __FILE__)) @inject_styles = ERB.new(styles).result(binding) ERB.new(template).result(binding) end end end
Version data entries
4 entries across 4 versions & 1 rubygems