Class: Hyrax::IiifManifestPresenter::NullAbility

Inherits:
Object
  • Object
show all
Defined in:
app/presenters/hyrax/iiif_manifest_presenter.rb

Overview

An Ability-like object that gives `true` for all `can?` requests

Instance Method Summary collapse

Instance Method Details

#can?Boolean

Returns true.

Returns:

  • (Boolean)

    true


151
152
153
# File 'app/presenters/hyrax/iiif_manifest_presenter.rb', line 151

def can?(*)
  true
end