lib/prefixed_ids.rb in prefixed_ids-1.3.0 vs lib/prefixed_ids.rb in prefixed_ids-1.4.0

- old
+ new

@@ -59,9 +59,17 @@ end def find_by_prefix_id!(id) find_by!(id: _prefix_id.decode(id)) end + + def decode_prefix_id(id) + _prefix_id.decode(id) + end + + def decode_prefix_ids(ids) + ids.map { |id| decode_prefix_id(id) } + end end def prefix_id self.class._prefix_id.encode(id) end