app/controllers/cavy/users_controller.rb in cavy-0.1.0.beta1 vs app/controllers/cavy/users_controller.rb in cavy-0.1.0.beta2

- old
+ new

@@ -1,25 +1,22 @@ require_dependency 'cavy/application_controller' module Cavy class UsersController < ApplicationController - - before_action :set_user, only: [:show, :edit, :update] + before_action :set_user, only: %i[show edit update] layout 'cavy/admin_layout' def index @users = User.all end - def show - end + def show; end def new @user = User.new end - def edit - end + def edit; end def create @user = User.new(user_params) if @user.save