lib/proxes/controllers/permissions.rb in proxes-0.9.13 vs lib/proxes/controllers/permissions.rb in proxes-0.10.1

- old
+ new

@@ -7,10 +7,11 @@ require 'proxes/policies/permission_policy' module ProxES class Permissions < Ditty::Component set model_class: Permission + set view_folder: ::Ditty::ProxES.view_folder FILTERS = [ { name: :user, field: 'user.email' }, { name: :role, field: 'role.name' }, { name: :verb } @@ -28,14 +29,8 @@ end def verb_options ProxES::Permission.verbs end - end - - def find_template(views, name, engine, &block) - super(views, name, engine, &block) # Root - super(::Ditty::ProxES.view_folder, name, engine, &block) # This Component - super(::Ditty::App.view_folder, name, engine, &block) # Ditty end end end