Skip to content

Commit

Permalink
Fix NameError: uninitialized constant Roo::Base::TEMP_PREFIX
Browse files Browse the repository at this point in the history
Fix reference to deleted `TEMP_PREFIX` constant.  The constant was
replaced with a class method, but in this context we would be calling an
instance method, not a class method, which is why we are getting the
uninitialized constant error.
  • Loading branch information
dangerous committed Aug 25, 2016
1 parent ac4e681 commit 47b6f76
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/roo/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -545,7 +545,7 @@ def find_basename(filename)

def make_tmpdir(prefix = nil, root = nil, &block)
warn '[DEPRECATION] extend Roo::Tempdir and use its .make_tempdir instead'
prefix = "#{TEMP_PREFIX}#{prefix}"
prefix = "#{Roo::TEMP_PREFIX}#{prefix}"
root ||= ENV['ROO_TMP']

if block_given?
Expand Down

0 comments on commit 47b6f76

Please sign in to comment.