Sha256: 37bf91997c751b302c3628e0a35535ad201ececfddf24207bc68635961fcccdc

Contents?: true

Size: 239 Bytes

Versions: 111

Compression:

Stored size: 239 Bytes

Contents

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

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

Version data entries

111 entries across 111 versions & 1 rubygems

Version Path
spree_core-4.0.9 app/models/spree/state_change.rb
spree_core-4.1.15 app/models/spree/state_change.rb
spree_core-4.2.7 app/models/spree/state_change.rb
spree_core-4.3.3 app/models/spree/state_change.rb
spree_core-4.4.1 app/models/spree/state_change.rb
spree_core-4.2.6 app/models/spree/state_change.rb
spree_core-4.3.2 app/models/spree/state_change.rb
spree_core-4.4.0 app/models/spree/state_change.rb
spree_core-4.4.0.rc2 app/models/spree/state_change.rb
spree_core-4.3.1 app/models/spree/state_change.rb
spree_core-4.4.0.rc1 app/models/spree/state_change.rb
spree_core-4.3.0 app/models/spree/state_change.rb
spree_core-4.3.0.rc3 app/models/spree/state_change.rb
spree_core-4.3.0.rc2 app/models/spree/state_change.rb
spree_core-4.3.0.rc1 app/models/spree/state_change.rb
spree_core-4.2.5 app/models/spree/state_change.rb
spree_core-4.1.14 app/models/spree/state_change.rb
spree_core-4.0.8 app/models/spree/state_change.rb
spree_core-4.2.4 app/models/spree/state_change.rb
spree_core-3.7.14.1 app/models/spree/state_change.rb