Skip to content
Browse files

Fix Geocoder.version method.

Specify path to VERSION file relative to lib/geocoder.rb.
  • Loading branch information...
1 parent 3ef6ebd commit aab7406ddab7a209d40b878ca7f8c2ef0a614f76 @alexreisner alexreisner committed Apr 26, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/geocoder.rb
View
2 lib/geocoder.rb
@@ -94,7 +94,7 @@ def ip_lookups
end
def version
- File.read("VERSION")
+ File.read(File.join(File.dirname(__FILE__), "..", "VERSION")).chomp
end

0 comments on commit aab7406

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