Sha256: 1331d52e5d8b7813eeff2d34d73c1744671dde8d9cb26aa2e5a4be99b0006f47

Contents?: true

Size: 284 Bytes

Versions: 43

Compression:

Stored size: 284 Bytes

Contents

module Spree
  class StateChange < Spree::Base
    belongs_to :user
    belongs_to :stateful, polymorphic: true
    before_create :assign_user

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

    def assign_user
      true # don't stop the filters
    end
  end
end

Version data entries

43 entries across 43 versions & 1 rubygems

Version Path
solidus_core-2.5.2 app/models/spree/state_change.rb
solidus_core-2.5.1 app/models/spree/state_change.rb
solidus_core-2.5.0 app/models/spree/state_change.rb
solidus_core-2.5.0.rc1 app/models/spree/state_change.rb
solidus_core-2.5.0.beta2 app/models/spree/state_change.rb
solidus_core-2.5.0.beta1 app/models/spree/state_change.rb
solidus_core-2.4.2 app/models/spree/state_change.rb
solidus_core-2.3.1 app/models/spree/state_change.rb
solidus_core-2.4.1 app/models/spree/state_change.rb
solidus_core-2.2.2 app/models/spree/state_change.rb
solidus_core-2.1.1 app/models/spree/state_change.rb
solidus_core-2.0.3 app/models/spree/state_change.rb
solidus_core-1.4.2 app/models/spree/state_change.rb
solidus_core-1.3.2 app/models/spree/state_change.rb
solidus_core-2.4.0 app/models/spree/state_change.rb
solidus_core-2.4.0.rc1 app/models/spree/state_change.rb
solidus_core-2.4.0.beta1 app/models/spree/state_change.rb
solidus_core-2.3.0 app/models/spree/state_change.rb
solidus_core-2.3.0.rc3 app/models/spree/state_change.rb
solidus_core-2.3.0.rc2 app/models/spree/state_change.rb