app/controllers/swimming_pool_reviews_controller.rb
# Returns true if the user doesn't meet the
# criteria for creating a Review or false otherwise.
#
Returns true if the user doesn't meet the
criteria for creating a Review or false otherwise.
Returns true if the user doesn ' t meet the criteria for creating a Review or false otherwise .
def current_user_does_not_have_enough_confirmations?
    if current_user.has_swimmer_confirmations?
      false
    else
      flash[:error] = I18n.t(:invalid_action_request)
      true
    end
  end
def current_user_does_not_have_enough_confirmations? if current_user . has_swimmer_confirmations? false else flash [ :error ] = I18n . t ( :invalid_action_request ) true end end
Returns true if the user doesn't meet the
criteria for creating a Review or false otherwise.
Returns true if the user doesn ' t meet the criteria for creating a Review or false otherwise .
# Only a confirmed swimmer-user can start the creation of a swimming-pool review: