Sha256: ed98949e4ff4d8b186ea3548bfa8d0ddc131aa9554fd4f0262b074bc44e43854

Contents?: true

Size: 241 Bytes

Versions: 22

Compression:

Stored size: 241 Bytes

Contents

module Spree
  class StateChange < Spree::Base
    belongs_to :user, class_name: "::#{Spree.user_class}", optional: true
    belongs_to :stateful, polymorphic: true

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

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
spree_core-4.10.1 app/models/spree/state_change.rb
spree_core-4.10.0 app/models/spree/state_change.rb
spree_core-4.9.0 app/models/spree/state_change.rb
spree_core-4.8.3 app/models/spree/state_change.rb
spree_core-4.8.2 app/models/spree/state_change.rb
spree_core-4.7.3 app/models/spree/state_change.rb
spree_core-4.6.6 app/models/spree/state_change.rb
spree_core-4.5.5 app/models/spree/state_change.rb
spree_core-4.5.4 app/models/spree/state_change.rb
spree_core-4.6.5 app/models/spree/state_change.rb
spree_core-4.7.2 app/models/spree/state_change.rb
spree_core-4.7.1 app/models/spree/state_change.rb
spree_core-4.6.4 app/models/spree/state_change.rb
spree_core-4.7.0 app/models/spree/state_change.rb
spree_core-4.6.3 app/models/spree/state_change.rb
spree_core-4.6.2 app/models/spree/state_change.rb
spree_core-4.6.1 app/models/spree/state_change.rb
spree_core-4.6.0 app/models/spree/state_change.rb
spree_core-4.5.3 app/models/spree/state_change.rb
spree_core-4.5.2 app/models/spree/state_change.rb