lib/sinatra-s3/models/bit.rb in sinatra-s3-0.98 vs lib/sinatra-s3/models/bit.rb in sinatra-s3-0.99

- old
+ new

@@ -40,11 +40,11 @@ to = Bit.find_by_version(to) if to.instance_of?(String) git_repository.diff(objectish, to.objectish) end def self.diff(from,to) - from = Bit.find_by_version(from) - to = Bit.find_by_version(to) + from = Bit.find_by_version(from) if from.instance_of?(String) + to = Bit.find_by_version(to) if to.instance_of?(String) from.git_repository.diff(from.objectish, to.objectish) end def acl_list bit_perms = self.access.nil? ? "000" : self.access.to_s(8)