Sha256: 286f553c330f72dd89b55399e9e40438e63150b45b622068c419ca5469e25f17

Contents?: true

Size: 208 Bytes

Versions: 2

Compression:

Stored size: 208 Bytes

Contents

module FcrepoAdmin
  module ControllerBehavior

    def load_and_authz_object
      @object = ActiveFedora::Base.find(params[:object_id], :cast => true)
      authorize! :read, @object
    end    

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_admin-0.1.1 lib/fcrepo_admin/controller_behavior.rb
fcrepo_admin-0.1.0 lib/fcrepo_admin/controller_behavior.rb