app/models/committees/committee_member.rb
# Returns true if the user has responded (based on last_user_response_at) to an availability request within the
# response_lifetime provided (default is 9 months). Or, if this Committee has a response_reset_date set, return true
# if this member's last_user_response_at is newer than the response_reset_date.
Returns true if the user has responded (based on last_user_response_at) to an availability request within the
response_lifetime provided (default is 9 months). Or, if this Committee has a response_reset_date set, return true
if this member's last_user_response_at is newer than the response_reset_date.
Returns true if the user has responded ( based on last_user_response_at ) to an availability request within the response_lifetime provided ( default is 9 months ) . Or if this Committee has a response_reset_date set return true if this member ' s last_user_response_at is newer than the response_reset_date .
def responded_recently?(response_lifetime = DEFAULT_RESPONSE_LIFETIME)
    if committee && committee.response_reset_date
      last_user_response_at > committee.response_reset_date rescue false
    else
      Time.now - last_user_response_at < response_lifetime rescue false
    end
  end
def responded_recently? ( response_lifetime = DEFAULT_RESPONSE_LIFETIME ) if committee && committee . response_reset_date last_user_response_at > committee . response_reset_date rescue false else Time . now - last_user_response_at < response_lifetime rescue false end end
Returns true if the user has responded (based on last_user_response_at) to an availability request within the
response_lifetime provided (default is 9 months).
Returns true if the user has responded ( based on last_user_response_at ) to an availability request within the response_lifetime provided ( default is 9 months ) .
response_lifetime