Skip to content

Fix ~/.pryrc __FILE__ deal #681

Merged
merged 1 commit into from Aug 5, 2012
+1 −1
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
Something went wrong with that request. Please try again.