Sha256: 735753bc2f2f60fa972d1e0ebf1964f57fd0977086605dd05e25c5b1f403d2e4

Contents?: true

Size: 685 Bytes

Versions: 6

Compression:

Stored size: 685 Bytes

Contents

module PageflowPaged
  # @api private
  class EntriesController < PageflowPaged::ApplicationController
    include Pageflow::EntriesControllerEnvHelper
    include WithoutControllerNamespacePartialPathPrefix

    helper Pageflow::FeedsHelper
    helper Pageflow::MetaTagsHelper
    helper Pageflow::StructuredDataHelper
    helper Pageflow::PublicI18nHelper

    def show
      @entry = get_published_entry_from_env
      @widget_scope = get_entry_mode_from_env

      I18n.locale = @entry.locale

      @entry.share_target =
        if params[:page].present?
          @entry.pages.find_by_perma_id(params[:page]) || @entry
        else
          @entry
        end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
pageflow-17.0.4 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb
pageflow-17.0.3 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb
pageflow-17.0.2 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb
pageflow-17.0.1 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb
pageflow-17.0.0 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb
pageflow-16.2.0 entry_types/paged/app/controllers/pageflow_paged/entries_controller.rb