Sha256: 53a2f5e1d335dfa212572a945e00d2eff71be9d037587f665df4c7dab8aaf383

Contents?: true

Size: 542 Bytes

Versions: 17

Compression:

Stored size: 542 Bytes

Contents

module Controller
  module ResourceLinksConcern
    extend ActiveSupport::Concern

    # included do
    #   helper_method :resource_pages
    # end

    # private

    # def resource_pages
    #   # Itsf::Backend::Configuration.default_resource_pages + 
    #   Itsf::Backend::Configuration.resource_pages.map { |arp| arp.respond_to?(:call) ? arp.call(self) : arp.to_sym }.compact
    # end

    included do
      helper_method :resource_links
    end

    private

    def resource_links
      Itsf::Backend.resource_links
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
itsf_backend-5.0.0.pre app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.2.3 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.2.2 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.2.1 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.2.0 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.0.1 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-4.0.0 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.1.1 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.1.0 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.7 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.6 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.5 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.4 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.3 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.2 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.1 app/controllers/concerns/controller/resource_links_concern.rb
itsf_backend-3.0.0 app/controllers/concerns/controller/resource_links_concern.rb