Sha256: 9fffc08de6be3aa7b01c9ee934a0e6d32c1f689cd6ae7f1a4c241cee8acfcc3b
Contents?: true
Size: 411 Bytes
Versions: 2
Compression:
Stored size: 411 Bytes
Contents
module FcrepoAdmin module Ability extend ActiveSupport::Concern included do self.ability_logic += [:fcrepo_admin_object_permissions] end def fcrepo_admin_object_permissions FcrepoAdmin.object_permissions.each do |action, permission| can action, ActiveFedora::Base do |obj| send("test_#{permission}".to_sym, obj.pid) end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
fcrepo_admin-0.6.1 | lib/fcrepo_admin/ability.rb |
fcrepo_admin-0.6.0 | lib/fcrepo_admin/ability.rb |