Class: Spina::StructureItem

Inherits:
ApplicationRecord show all
Includes:
Partable
Defined in:
app/models/spina/structure_item.rb

Instance Method Summary collapse

Instance Method Details

#ensure_positionObject



18
19
20
# File 'app/models/spina/structure_item.rb', line 18

def ensure_position
  self.position ||= Time.now.to_i
end