Class: StateEvent
- Defined in:
- app/models/state_event.rb
Instance Method Summary collapse
Instance Method Details
#<=>(other) ⇒ Object
5 6 7 |
# File 'app/models/state_event.rb', line 5 def <=>(other) created_at <=> other.created_at end |
#before_create ⇒ Object
9 10 11 12 13 14 |
# File 'app/models/state_event.rb', line 9 def before_create if UserSession.activated? && current_user_session = UserSession.find self.user_id ||= current_user_session.user.id end true # don't stop the filters end |