Class: Thredded::MessageboardGroup

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
app/models/thredded/messageboard_group.rb

Instance Method Summary collapse

Instance Method Details

#ensure_positionObject


17
18
19
# File 'app/models/thredded/messageboard_group.rb', line 17

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