Sha256: ca5f61b69ab76b31c501dd37ad4b1c7c50551062510230826f0caed7b6bd3798

Contents?: true

Size: 175 Bytes

Versions: 6

Compression:

Stored size: 175 Bytes

Contents

class Order < ActiveRecord::Base
  before_save do |row|
    row.errors.add :base, "panic" if row.category == "error"
  end

  add_to_bag :field, flag: :boolean, at: :date
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
act_with_bag-1.1.5 test/internal/app/models/order.rb
act_with_bag-1.1.4 test/internal/app/models/order.rb
act_with_bag-1.1.3 test/internal/app/models/order.rb
act_with_bag-1.1.2 test/internal/app/models/order.rb
act_with_bag-1.1.1 test/internal/app/models/order.rb
act_with_bag-1.1.0 test/internal/app/models/order.rb