Sha256: e93a8fbdc70b12e1c4d500f31c861490ee6c162fd3a4f494aef22085b97dd28e

Contents?: true

Size: 233 Bytes

Versions: 8

Compression:

Stored size: 233 Bytes

Contents

class UsersController < ApplicationController
  before_action :authenticate_user!
  before_action :correct_user?, :except => [:index]

  def index
    @users = User.all
  end

  def show
    @user = User.find(params[:id])
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
rails_apps_pages-0.6.7 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.6 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.5 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.4 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.3 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.2 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.6.0 lib/generators/pages/users/templates/omniauth/users_controller.rb
rails_apps_pages-0.5.16 lib/generators/pages/users/templates/omniauth/users_controller.rb