app/controllers/event_notes_controller.rb
# Guard what values can be set by the current educator
Guard what values can be set by the current educator
Guard what values can be set by the current educator
def safe_is_restricted_value_for_create(safe_params)
    if current_educator.can_view_restricted_notes?
      safe_params[:is_restricted]
    else
      false
    end
  end
def safe_is_restricted_value_for_create ( safe_params ) if current_educator . can_view_restricted_notes? safe_params [ :is_restricted ] else false end end
Guard what values can be set by the current educator
Guard what values can be set by the current educator
safe_params
<not_specific>