Sha256: 7ee81dc7ffcbcd7b7672016962318dd4f875df8551990bcb10f88496e35050a5

Contents?: true

Size: 316 Bytes

Versions: 2

Compression:

Stored size: 316 Bytes

Contents

module FcrepoAdmin::Controller
  module ControllerBehavior
    extend ActiveSupport::Concern

    included do
      helper_method :object_is_auditable?
    end

    def object_is_auditable?
      begin
        @object && @object.is_a?(ActiveFedora::Auditable)
      rescue
        false
      end
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
fcrepo_admin-0.3.5 lib/fcrepo_admin/controller/controller_behavior.rb
fcrepo_admin-0.3.4 lib/fcrepo_admin/controller/controller_behavior.rb