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



158
159
160
# File 'app/presenters/hyrax/iiif_manifest_presenter.rb', line 158

def can?(*)
  true
end