Sha256: d62830ecf2456c1143bef2f3a21bce83b34358c7abd980e3d0942c12e170a9cc

Contents?: true

Size: 491 Bytes

Versions: 88

Compression:

Stored size: 491 Bytes

Contents

# frozen_string_literal: true

module Decidim
  module Pages
    # This controller is the abstract class from which all other controllers of
    # this engine inherit.
    #
    # Note that it inherits from `Decidim::Components::Basecontroller`, which
    # override its layout and provide all kinds of useful methods.
    class ApplicationController < Decidim::Components::BaseController
      def show
        @page = Page.find_by(component: current_component)
      end
    end
  end
end

Version data entries

88 entries across 88 versions & 1 rubygems

Version Path
decidim-pages-0.26.8 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.4 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.3 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.7 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.5 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.4 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.0 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.3 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.0.rc2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.0.rc1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.0 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.0.rc2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.0.rc1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.25.2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.25.1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.25.0 app/controllers/decidim/pages/application_controller.rb