add user model

This commit is contained in:
João Geonizeli
2021-08-04 20:32:58 -03:00
parent a90855c5af
commit 41e3119953
10 changed files with 156 additions and 8 deletions

View File

@@ -0,0 +1,8 @@
# frozen_string_literal: true
module Admin
class UsersController < Admin::ApplicationController
def valid_action?(name, resource = resource_class)
["new", "destroy"].exclude?(name.to_s) && super
end
end
end