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



15
16
17
# File 'app/models/thredded/messageboard_group.rb', line 15

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