Sha256: ba0cdba307e75360bd15789d94396e4ecbd8e25d74458ff1a687c815f66058dd
Contents?: true
Size: 663 Bytes
Versions: 19
Compression:
Stored size: 663 Bytes
Contents
module Padrino ## # This module extend Sinatra::ShowExceptions adding Padrino as "Framework" # module ShowExceptions def self.included(base) base.alias_method_chain :frame_class, :padrino end def frame_class_with_padrino(frame) if frame.filename =~ /lib\/sinatra.*\.rb|lib\/padrino.*\.rb/ "framework" elsif (defined?(Gem) && frame.filename.include?(Gem.dir)) || frame.filename =~ /\/bin\/(\w+)$/ || frame.filename =~ /Ruby\/Gems/ "system" else "app" end end end # ShowExceptions end # Padrino Sinatra::ShowExceptions.send(:include, Padrino::ShowExceptions)
Version data entries
19 entries across 19 versions & 1 rubygems