Displaying 1 result from an estimated 1 matches for "event_invitation_expir".
Did you mean:
event_invitation_expired
2011 Dec 07
2
Question About Separation Of Concerns (ActiveRecord)
...Invitation
belongs_to :meeting
My problem is when an invitation is made, I want to check if the invitation
has expired. I have thought of the following ....
1. include a method call in the Invitation model
## Check if the meeting (event''s invitation) has expired (should it be
called event_invitation_expired?
## Should the invitation know anything about the Event class?
def meeting_expired? ## event_invitation_expired?
meeting.invitation_expired? ## meeting.event.invitation_expired?
end
2. include an event_id foreign key in the invitations table so I can have
the same method as in...