Sha256: 14cba06d9b4d8c15042221d26b93cc9e4852c6a0e681eb4163feda55c67e37cf

Contents?: true

Size: 187 Bytes

Versions: 6

Compression:

Stored size: 187 Bytes

Contents

class Order < ActiveRecord::Base

  before_save :before_save_x
  def before_save_x
    return true  unless name == 'error'

    self.errors.add :base, 'panic'
    return false
  end

end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
formie-0.8.2 test/dummy/app/models/order.rb
formie-0.8.0 test/dummy/app/models/order.rb
rows_controller-1.1.7 spec/dummy/app/models/order.rb
rows_controller-1.1.6 spec/dummy/app/models/order.rb
rows_controller-1.0.3 spec/dummy/app/models/order.rb
rows_controller-1.0.1 spec/dummy/app/models/order.rb