Sha256: 580ddf0a1e1526fba8751116c33967150f4c5c28b59a8d5526f460478c9cd92a

Contents?: true

Size: 226 Bytes

Versions: 8

Compression:

Stored size: 226 Bytes

Contents

class Company < ActiveRecord::Base
  attr_protected :rating
  set_sequence_name :companies_nonstd_seq

  validates_presence_of :name
  def validate
    errors.add('rating', 'rating should not be 2') if rating == 2
  end  
end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
jstorimer-deep-test-2.0.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-1.4.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-1.3.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-1.2.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-1.1.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-1.0.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-0.2.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb
jstorimer-deep-test-0.1.0 sample_rails_project/vendor/rails/actionpack/test/fixtures/company.rb