lib/refile/random_hasher.rb in refile-0.3.0 vs lib/refile/random_hasher.rb in refile-0.4.0
- old
+ new
@@ -1,10 +1,11 @@
-# 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)
+module Refile
+ # A file hasher which ignores the file contents and always returns a random string.
+ class RandomHasher
+ # Generate a random string
+ #
+ # @return [String]
+ def hash(_uploadable = nil)
+ SecureRandom.hex(30)
+ end
end
end