Newer
Older
dmpopidor / app / controllers / home_controller.rb
@xsrust xsrust on 16 Sep 2016 298 bytes added auth to home controller
class HomeController < ApplicationController
  after_action :verify_authorized

  def index
    authorize User
  	if user_signed_in?
  		name = current_user.name(false)
  		if name.blank?
  			redirect_to edit_user_registration_path
  		else
  			redirect_to projects_url
  		end
  	end
  end

end