Sha256: 86cd3d3638d08bb4618981a4a4effe48f55e98ea30c1cbde7efbdd638229735f

Contents?: true

Size: 274 Bytes

Versions: 6

Compression:

Stored size: 274 Bytes

Contents

module UcbRailsUser::HomeControllerConcerns
  extend ActiveSupport::Concern

  included do
    skip_before_action :ensure_authenticated_user, raise: false
  end

  def index
    if logged_in?
      render "logged_in"
    else
      render "not_logged_in"
    end
  end

end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
ucb_rails_user-7.0.0 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
ucb_rails_user-6.2.2 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
ucb_rails_user-6.2.0 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
ucb_rails_user-6.1.1 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
ucb_rails_user-6.1.0 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb
ucb_rails_user-6.0.0 app/controllers/concerns/ucb_rails_user/home_controller_concerns.rb