Sha256: 91ba86a13e78869d5b7f69652910f049feffe1fafc70fa16f9410d7c93e19311

Contents?: true

Size: 286 Bytes

Versions: 56

Compression:

Stored size: 286 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

56 entries across 56 versions & 2 rubygems

Version Path
solidus_core-1.2.3 app/models/spree/state_change.rb
solidus_core-1.1.4 app/models/spree/state_change.rb
solidus_core-1.0.7 app/models/spree/state_change.rb
solidus_core-1.0.6 app/models/spree/state_change.rb
solidus_core-1.2.2 app/models/spree/state_change.rb
solidus_core-1.2.1 app/models/spree/state_change.rb
solidus_core-1.1.3 app/models/spree/state_change.rb
solidus_core-1.0.5 app/models/spree/state_change.rb
solidus_core-1.2.0 app/models/spree/state_change.rb
solidus_core-1.2.0.rc2 app/models/spree/state_change.rb
solidus_core-1.0.4 app/models/spree/state_change.rb
solidus_core-1.1.2 app/models/spree/state_change.rb
solidus_core-1.2.0.rc1 app/models/spree/state_change.rb
solidus_core-1.2.0.beta1 app/models/spree/state_change.rb
solidus_core-1.0.3 app/models/spree/state_change.rb
solidus_core-1.1.1 app/models/spree/state_change.rb
solidus_core-1.1.0 app/models/spree/state_change.rb
solidus_core-1.1.0.pre2 app/models/spree/state_change.rb
solidus_core-1.1.0.pre1 app/models/spree/state_change.rb
solidus_core-1.1.0.beta1 app/models/spree/state_change.rb