mirror of
https://github.com/pry/pry.git
synced 2022-11-09 12:35:05 -05:00
Merge pull request #1118 from richo/features/recursive_pry_hack
Ensures that loading pry inside config doesn't explode
This commit is contained in:
commit
6b14f3dfa1
1 changed files with 3 additions and 1 deletions
|
@ -51,7 +51,9 @@ class Pry
|
|||
# This method can also be used to reload the files if they have changed.
|
||||
def self.load_rc_files
|
||||
rc_files_to_load.each do |file|
|
||||
load_file_at_toplevel(file)
|
||||
critical_section do
|
||||
load_file_at_toplevel(file)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue