Created
February 28, 2013 02:29
-
-
Save abacha/5053700 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class VisitReport < ActiveRecord::Base | |
| attr_accessible :comments, :attachments_attributes, :person_id, :person_name, | |
| :clients_visit_reports_attributes | |
| validates_presence_of :comments, :clients_visit_reports | |
| has_many :clients_visit_reports, :class_name => ClientsVisitReport | |
| accepts_nested_attributes_for :clients_visit_reports, :allow_destroy => true | |
| end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment