Sha256: e30f76967e3fe015073b808b5ac3008c252d522cf0fb933a02724513e0f1ca3f
Contents?: true
Size: 432 Bytes
Versions: 11
Compression:
Stored size: 432 Bytes
Contents
module Spree class StateEvent < ActiveRecord::Base belongs_to :user belongs_to :stateful, :polymorphic => true before_create :assign_user def <=>(other) created_at <=> other.created_at end 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 end end
Version data entries
11 entries across 11 versions & 1 rubygems