Sha256: 94ae7822016aa02bf25402349a064094b5500b4291fe52d508641bc378a3f6a3

Contents?: true

Size: 558 Bytes

Versions: 3

Compression:

Stored size: 558 Bytes

Contents

module SimplePages
  class ApplicationController < ActionController::Base
    respond_to :html

    helper ::RailsTheme::Engine.helpers
    helper SimplePages.helper_modules

    SimplePages.controller_modules.each { |module_name| include module_name }

    if SimplePages.extra_page_layout.present?
      has_page_layout_at SimplePages.extra_page_layout
    end

    protected

    def load_author_options
      load_authors
      @author_options = @authors.map do |author|
        [author.name, author.simple_page_owner_option]
      end
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
simple-pages-rails-0.6.0 app/controllers/simple_pages/application_controller.rb
simple-pages-rails-0.5.0 app/controllers/simple_pages/application_controller.rb
simple-pages-rails-0.4.0 app/controllers/simple_pages/application_controller.rb