Sha256: 1262eb642b68396ffe54d40623ba99c7cf42d26d265b22ae71300ad6fbec2e74
Contents?: true
Size: 368 Bytes
Versions: 4
Compression:
Stored size: 368 Bytes
Contents
class CmAdmin::<%= class_name %>Policy < ApplicationPolicy <%- available_action_names = (cm_model.available_actions.map{|action| action.name}.uniq - ['custom_action', 'new', 'edit']) %> <%- available_action_names.each do |action_name| %> def <%= action_name %>? <%= CmAdmin.authorized_roles.map {|role| "@user.#{role}" }.join(' && ') %> end <% end %> end
Version data entries
4 entries across 4 versions & 1 rubygems