app/controllers/application_controller.rb
# Prevent CSRF attacks by raising an exception.
# For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception.
For APIs, you may want to use :null_session instead.
Prevent CSRF attacks by raising an exception . For APIs you may want to use : null_session instead .
def check_ferpa_reminder_date
    if session[:vicarious_user].blank? && (@current_user.ferpa_reminder_date.nil? || @current_user.ferpa_reminder_date < 3.months.ago)
      redirect_to admin_ferpa_reminder_url(:return_to => request.request_uri) and return
    end
  end
def check_ferpa_reminder_date if session [ :vicarious_user ] . blank? && ( @current_user . ferpa_reminder_date . nil? || @current_user . ferpa_reminder_date < 3 . months . ago ) redirect_to admin_ferpa_reminder_url ( :return_to => request . request_uri ) and return end end
Prevent CSRF attacks by raising an exception.
Prevent CSRF attacks by raising an exception .