lib/simplehasher.rb in simple-hasher-0.0.6 vs lib/simplehasher.rb in simple-hasher-0.0.7

- old
+ new

@@ -1,7 +1,7 @@ -class SimpleHasher +require File.dirname(__FILE__) + '/simplehasher/railtie' if defined?(Rails) - require File.dirname(__FILE__) + 'simplehasher/railtie' if defined?(Rails) +module SimpleHasher def self.encode(id) length = self.config.allowed_chars.length while id > length -1