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.29.1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.4 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.9 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.29.0 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.3 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.8 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.29.0.rc4 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.29.0.rc3 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.29.0.rc2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.29.0.rc1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.2 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.7 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.1 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.6 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.10 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.26.9 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.0 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.27.5 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.0.rc5 app/controllers/decidim/pages/application_controller.rb
decidim-pages-0.28.0.rc4 app/controllers/decidim/pages/application_controller.rb