app/controllers/application_controller.rb
# only certain users to see these docs
only certain users to see these docs
only certain users to see these docs
def check_allowed
    unless $allowed_users.include?(current_user.email)
      flash[:alert] = "That information is not available."
      redirect_to :action => 'welcome', :controller => 'info'
    end
  end
def check_allowed unless $allowed_users . include? ( current_user . email ) flash [ :alert ] = "That information is not available." redirect_to :action => 'welcome' , :controller => 'info' end end
only certain users to see these docs
only certain users to see these docs