module Skr::Concerns::VisibleIdIdentifier::InstanceMethods

Public Instance Methods

assign_visible_id!() click to toggle source

setup the visible id to the next available #{Skr::SequentialId} @return [Integer] the assigned ID

# File lib/skr/concerns/visible_id_identifier.rb, line 13
def assign_visible_id!
    self.visible_id ||= Skr::SequentialId.next_for( self.class )
end