Displaying 1 result from an estimated 1 matches for "meeting_expir".
Did you mean:
meeting_expired
2011 Dec 07
2
Question About Separation Of Concerns (ActiveRecord)
...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 the Meeting model
def invitation_expired?
event.invitation_expired?
end
I'...