Sha256: b9c35bac9ddffd759e616a75ef489a17d3d80ed9712b5219b39d4c87e06fea27

Contents?: true

Size: 218 Bytes

Versions: 32

Compression:

Stored size: 218 Bytes

Contents

module Spree
  class StateChange < Spree::Base
    belongs_to :user, class_name: Spree.user_class
    belongs_to :stateful, polymorphic: true

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

Version data entries

32 entries across 32 versions & 1 rubygems

Version Path
spree_core-3.2.9 app/models/spree/state_change.rb
spree_core-3.1.14 app/models/spree/state_change.rb
spree_core-3.2.8 app/models/spree/state_change.rb
spree_core-3.1.13 app/models/spree/state_change.rb
spree_core-3.2.7 app/models/spree/state_change.rb
spree_core-3.1.12 app/models/spree/state_change.rb
spree_core-3.2.6 app/models/spree/state_change.rb
spree_core-3.1.11 app/models/spree/state_change.rb
spree_core-3.1.10 app/models/spree/state_change.rb
spree_core-3.2.5 app/models/spree/state_change.rb
spree_core-3.1.9 app/models/spree/state_change.rb
spree_core-3.2.4 app/models/spree/state_change.rb
spree_core-3.1.8 app/models/spree/state_change.rb
spree_core-3.1.7 app/models/spree/state_change.rb
spree_core-3.2.3 app/models/spree/state_change.rb
spree_core-3.2.2 app/models/spree/state_change.rb
spree_core-3.1.6 app/models/spree/state_change.rb
spree_core-3.1.5 app/models/spree/state_change.rb
spree_core-3.2.1 app/models/spree/state_change.rb
spree_core-3.2.0 app/models/spree/state_change.rb