Class: StateEvent

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



6
7
8
# File 'app/models/state_event.rb', line 6

def <=>(other)
  created_at <=> other.created_at
end

#assign_userObject



10
11
12
13
14
15
# File 'app/models/state_event.rb', line 10

def assign_user
  # if Session.activated? && current_user_session = Session.find
  #   self.user_id ||= current_user_session.user.id
  # end
  true   # don't stop the filters
end