Module: PrefixedIds::Attribute

Extended by:
ActiveSupport::Concern
Defined in:
lib/prefixed_ids.rb

Overview

Included when a module uses `has_prefix_id`

Instance Method Summary collapse

Instance Method Details

#prefix_idObject


65
66
67
# File 'lib/prefixed_ids.rb', line 65

def prefix_id
  self.class._prefix_id.encode(id)
end