aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/fixtures/developer.rb
blob: 1c4cc305065cd48fe49d7d3addbef55e6b69f1a6 (plain) (tree)
1
2
3
4
5
6
7
8




                                    
                                                    
       
   
class Developer < ActiveRecord::Base
  has_and_belongs_to_many :projects

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