Sha256: 8f12cfe0c717f4885b685bdf7af1d7e340191c24857dec219b5b3317fb2f3ceb

Contents?: true

Size: 295 Bytes

Versions: 9

Compression:

Stored size: 295 Bytes

Contents

module Hyrax
  class HomepagePresenter
    attr_reader :current_ability

    def initialize(current_ability)
      @current_ability = current_ability
    end

    def display_share_button?
      Hyrax.config.always_display_share_button? || current_ability.can_create_any_work?
    end
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
hyrax-1.1.1 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.1.0 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.5 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.4 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.3 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.2 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.1 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.0.rc2 app/presenters/hyrax/homepage_presenter.rb
hyrax-1.0.0.rc1 app/presenters/hyrax/homepage_presenter.rb