Browse files

Avoid self.class in preference to MiniExiftool.

  • Loading branch information...
1 parent 5f576fa commit c19eb3788be382fbb83b4c345be34f589d556cc8 @janfri committed Jul 9, 2012
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')

0 comments on commit c19eb37

Please sign in to comment.