Sha256: d7d07f5eac5095552bb02e26f2d9b1f509f028aaa4f93f23dde714da0d5b7f36

Contents?: true

Size: 296 Bytes

Versions: 20

Compression:

Stored size: 296 Bytes

Contents

module Spree
  class StateChange < ActiveRecord::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

20 entries across 20 versions & 2 rubygems

Version Path
spree_core-1.3.5 app/models/spree/state_change.rb
spree_core-1.3.4 app/models/spree/state_change.rb
spree_core-1.3.3 app/models/spree/state_change.rb
spree_core-1.2.5 app/models/spree/state_change.rb
spree_core-1.2.4 app/models/spree/state_change.rb
spree_core-1.3.2 app/models/spree/state_change.rb
spree_core-1.2.3 app/models/spree/state_change.rb
spree_core-1.3.1 app/models/spree/state_change.rb
spree_core-1.3.0 app/models/spree/state_change.rb
spree_core-1.3.0.rc2 app/models/spree/state_change.rb
dup_spree_core-1.3.0.rc1 app/models/spree/state_change.rb
spree_core-1.3.0.rc1 app/models/spree/state_change.rb
spree_core-1.2.2 app/models/spree/state_change.rb
spree_core-1.2.0 app/models/spree/state_change.rb
spree_core-1.2.0.rc2 app/models/spree/state_change.rb
spree_core-1.2.0.rc1 app/models/spree/state_change.rb
spree_core-1.1.1 app/models/spree/state_change.rb
spree_core-1.1.0 app/models/spree/state_change.rb
spree_core-1.1.0.rc2 app/models/spree/state_change.rb
spree_core-1.1.0.rc1 app/models/spree/state_change.rb