Skip to content

Commit

Permalink
Avoid self.class in preference to MiniExiftool.
Browse files Browse the repository at this point in the history
  • Loading branch information
janfri committed Jul 9, 2012
1 parent 5f576fa commit c19eb37
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/mini_exiftool.rb
Expand Up @@ -73,7 +73,7 @@ def initialize_from_hash hash # :nodoc:


# Load the tags of filename. # Load the tags of filename.
def load filename def load filename
self.class.setup MiniExiftool.setup
unless filename && File.exist?(filename) unless filename && File.exist?(filename)
raise MiniExiftool::Error.new("File '#{filename}' does not exist.") raise MiniExiftool::Error.new("File '#{filename}' does not exist.")
end end
Expand Down Expand Up @@ -146,7 +146,7 @@ def changed_tags


# Save the changes to the file. # Save the changes to the file.
def save def save
self.class.setup MiniExiftool.setup
return false if @changed_values.empty? return false if @changed_values.empty?
@errors.clear @errors.clear
temp_file = Tempfile.new('mini_exiftool') temp_file = Tempfile.new('mini_exiftool')
Expand Down

0 comments on commit c19eb37

Please sign in to comment.