Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Avoid self.class in preference to MiniExiftool.

  • Loading branch information...
commit c19eb3788be382fbb83b4c345be34f589d556cc8 1 parent 5f576fa
@janfri authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/mini_exiftool.rb
View
4 lib/mini_exiftool.rb
@@ -73,7 +73,7 @@ def initialize_from_hash hash # :nodoc:
# Load the tags of filename.
def load filename
- self.class.setup
+ MiniExiftool.setup
unless filename && File.exist?(filename)
raise MiniExiftool::Error.new("File '#{filename}' does not exist.")
end
@@ -146,7 +146,7 @@ def changed_tags
# Save the changes to the file.
def save
- self.class.setup
+ MiniExiftool.setup
return false if @changed_values.empty?
@errors.clear
temp_file = Tempfile.new('mini_exiftool')
Please sign in to comment.
Something went wrong with that request. Please try again.