lib/obfuscated_identifier.rb in obfuscated_identifier-0.0.1 vs lib/obfuscated_identifier.rb in obfuscated_identifier-0.0.2
- old
+ new
@@ -3,9 +3,13 @@
module ObfuscatedIdentifier
extend ActiveSupport::Concern
def to_param
+ to_identifier
+ end
+
+ def to_identifier
self.class.to_identifier(id)
end
module ClassMethods
attr_reader :identifier_length