Sha256: 6cd141413936b4e11e64ceab497ca56f809c0003dad9cc26ea5244446a3e543d

Contents?: true

Size: 315 Bytes

Versions: 42

Compression:

Stored size: 315 Bytes

Contents

# frozen_string_literal: true

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

42 entries across 42 versions & 2 rubygems

Version Path
solidus_core-2.9.6 app/models/spree/state_change.rb
solidus_core-2.8.6 app/models/spree/state_change.rb
solidus_core-2.9.5 app/models/spree/state_change.rb
solidus_core-2.9.4 app/models/spree/state_change.rb
solidus_core-2.6.6 app/models/spree/state_change.rb
solidus_core-2.7.4 app/models/spree/state_change.rb
solidus_core-2.8.5 app/models/spree/state_change.rb
solidus_core-2.9.3 app/models/spree/state_change.rb
solidus_core-2.9.2 app/models/spree/state_change.rb
solidus_core-2.7.3 app/models/spree/state_change.rb
solidus_core-2.6.5 app/models/spree/state_change.rb
solidus_core-2.9.1 app/models/spree/state_change.rb
solidus_core-2.9.0 app/models/spree/state_change.rb
solidus_core-2.9.0.rc.1 app/models/spree/state_change.rb
solidus_core-2.8.4 app/models/spree/state_change.rb
solidus_core-2.8.3 app/models/spree/state_change.rb
solidus_core-2.7.2 app/models/spree/state_change.rb
solidus_core-2.6.4 app/models/spree/state_change.rb
solidus_core-2.8.2 app/models/spree/state_change.rb
solidus_core-2.8.1 app/models/spree/state_change.rb