Skip to content
Browse files

Merge pull request #681 from rking/master

Fix ~/.pryrc __FILE__ deal
  • Loading branch information...
2 parents 6fd797d + bd30957 commit d242a7044485e5ff306615ca743bf0c95cea9ad6 @banister banister committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/pry/pry_class.rb
View
2 lib/pry/pry_class.rb
@@ -63,7 +63,7 @@ def self.delegate_accessors(delagatee, *names)
def self.load_file_at_toplevel(file_name)
full_name = File.expand_path(file_name)
begin
- toplevel_binding.eval(File.read(full_name)) if File.exists?(full_name)
+ toplevel_binding.eval(File.read(full_name), full_name) if File.exists?(full_name)
rescue RescuableException => e
puts "Error loading #{file_name}: #{e}"
end

0 comments on commit d242a70

Please sign in to comment.
Something went wrong with that request. Please try again.