lib/refile/random_hasher.rb in refile-0.2.5 vs lib/refile/random_hasher.rb in refile-0.3.0

- old
+ new

@@ -1,4 +1,9 @@ +# A file hasher which ignores the file contents and always returns a random string. class Refile::RandomHasher + + # Generate a random string + # + # @return [String] def hash(uploadable=nil) SecureRandom.hex(30) end end