aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/developer.rb
blob: 737fc3824b2ac2a3ef36549cd45e4b3afb80454c (plain) (blame)
1
2
3
4
5
6
7
8
class Developer < ActiveRecord::Base
  has_and_belongs_to_many :projects

  protected
    def validate
      errors.add_on_boundry_breaking("name", 3..20)
    end
end