lib/hashid/rails.rb in hashid-rails-0.1 vs lib/hashid/rails.rb in hashid-rails-0.1.1

- old
+ new

@@ -29,10 +29,14 @@ def decode_id(id) hashids.decode(id).first end def find(hashid) - super(decode_id(hashid)) + if hashid.is_a? String + super decode_id(hashid) + else + super hashid + end end end end end