lib/logtail/log_entry.rb in logtail-0.1.3 vs lib/logtail/log_entry.rb in logtail-0.1.4

- old
+ new

@@ -140,12 +140,12 @@ Pathname.new(frame.absolute_path).relative_path_from(root_path).to_s end def root_path if Object.const_defined?('Rails') - Rails.root.to_s + Rails.root elsif Object.const_defined?('Rack::Directory') - Rack::Directory.new('').root + Pathname.new(Rack::Directory.new('').root) else base_file = caller_locations.last.absolute_path Pathname.new(File.dirname(base_file || '/')) end end