ethanp / trracker

Time Tracking Utility as Rails App
trracker.herokuapp.com
2 stars 0 forks source link

Validations across associations #47

Open ethanp opened 10 years ago

ethanp commented 10 years ago

don't do it on both sides because that'd be an infinite loop

class MyModel < ActiveRecord::Base
  has_many :otherModel
  validates_associated :otherModel
end
ethanp commented 9 years ago

I think what this means is that whenever THIS class gets updated, THAT class's validations are run again. Obviously I'd need to confirm that before doing this.