Skip to content
This repository
Browse code

Avoid self.class in preference to MiniExiftool.

  • Loading branch information...
commit c19eb3788be382fbb83b4c345be34f589d556cc8 1 parent 5f576fa
janfri authored July 09, 2012

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. 4  lib/mini_exiftool.rb
4  lib/mini_exiftool.rb
@@ -73,7 +73,7 @@ def initialize_from_hash hash # :nodoc:
73 73
 
74 74
   # Load the tags of filename.
75 75
   def load filename
76  
-    self.class.setup
  76
+    MiniExiftool.setup
77 77
     unless filename && File.exist?(filename)
78 78
       raise MiniExiftool::Error.new("File '#{filename}' does not exist.")
79 79
     end
@@ -146,7 +146,7 @@ def changed_tags
146 146
 
147 147
   # Save the changes to the file.
148 148
   def save
149  
-    self.class.setup
  149
+    MiniExiftool.setup
150 150
     return false if @changed_values.empty?
151 151
     @errors.clear
152 152
     temp_file = Tempfile.new('mini_exiftool')

0 notes on commit c19eb37

Please sign in to comment.
Something went wrong with that request. Please try again.