search for: invitation_expiry

Displaying 1 result from an estimated 1 matches for "invitation_expiry".

Did you mean: invitation_expired
2011 Dec 07
2
Question About Separation Of Concerns (ActiveRecord)
...me method calls (separation of responsibility) and although I''m trying to do it just simply now in the models, I think my problem raises a bigger question about Fat Models. But that''s another subject for another day. Right now, I have .... Event has_many meetings ## has an a invitation_expiry date field. def invitation_expired? DateTime.now.in_time_zone(''UTC'') >= event.invitation_expiry.in_time_zone(''UTC'') end Meeting belongs_to :event has_many :invitations def invitation_expired? event.invitation_expired? end Invitation be...