Sha256: 4affa654c4879dce1e6347bfb0d5c728bea265d0817eacd6f64c04e20ab61709

Contents?: true

Size: 169 Bytes

Versions: 3

Compression:

Stored size: 169 Bytes

Contents

class Order < ApplicationRecord

  before_save do |row|
    row.flags ||= 0
    row.bigflags ||= ''
    row.errors.add :base, 'panic'  if row.name == 'error'
  end

end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
act_with_flags-0.2.4 test/internal/app/models/order.rb
act_with_flags-0.2.3 test/internal/app/models/order.rb
act_with_flags-0.2.0 test/internal/app/models/order.rb