Class: Company

Inherits:
ActiveRecord::Base show all
Defined in:
vendor/plugins/classic_pagination/test/fixtures/company.rb

Instance Method Summary

Methods inherited from ActiveRecord::Base

quoted_table_name

Instance Method Details

- (Object) validate



6
7
8
# File 'vendor/plugins/classic_pagination/test/fixtures/company.rb', line 6

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