Class: Spree::StateEvent

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

Instance Method Summary collapse

Instance Method Details

#<=>(other) ⇒ Object



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

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

#assign_userObject



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

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