Sha256: df2894fcf8a4d299307a369f03906c350933d3baf90eab58b5226940444835ba

Contents?: true

Size: 213 Bytes

Versions: 25

Compression:

Stored size: 213 Bytes

Contents

class UserController < ApplicationController
  before_action :authenticate

  layout 'user'

  private

    def authenticate
      if not current_user
        redirect_to new_user_session_url
      end
    end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
loco-rails-3.0.5 test/dummy/app/controllers/user_controller.rb
loco-rails-3.0.4 test/dummy/app/controllers/user_controller.rb
loco-rails-3.0.3 test/dummy/app/controllers/user_controller.rb
loco-rails-2.5.3 test/dummy/app/controllers/user_controller.rb
loco-rails-2.5.2 test/dummy/app/controllers/user_controller.rb
loco-rails-3.0.2 test/dummy/app/controllers/user_controller.rb
loco-rails-3.0.1 test/dummy/app/controllers/user_controller.rb
loco-rails-2.5.1 test/dummy/app/controllers/user_controller.rb
loco-rails-2.5.0 test/dummy/app/controllers/user_controller.rb
loco-rails-2.4.0 test/dummy/app/controllers/user_controller.rb
loco-rails-2.3.0 test/dummy/app/controllers/user_controller.rb
loco-rails-3.0.0 test/dummy/app/controllers/user_controller.rb
loco-rails-2.2.2 test/dummy/app/controllers/user_controller.rb
loco-rails-2.2.1 test/dummy/app/controllers/user_controller.rb
loco-rails-2.2.0 test/dummy/app/controllers/user_controller.rb
loco-rails-2.1.0 test/dummy/app/controllers/user_controller.rb
loco-rails-2.0.0 test/dummy/app/controllers/user_controller.rb
loco-rails-1.5.2 test/dummy/app/controllers/user_controller.rb
loco-rails-1.5.1 test/dummy/app/controllers/user_controller.rb
loco-rails-1.5.0 test/dummy/app/controllers/user_controller.rb