Module: PagesCore

Defined in:
lib/pages_core/plugin.rb,
lib/pages_core.rb,
lib/pages_core/engine.rb,
lib/pages_core/pub_sub.rb,
lib/pages_core/version.rb,
lib/pages_core/templates.rb,
lib/pages_core/pages_plugin.rb,
lib/pages_core/cache_sweeper.rb,
lib/pages_core/configuration.rb,
lib/pages_core/file_embedder.rb,
lib/pages_core/archive_finder.rb,
lib/pages_core/admin_menu_item.rb,
lib/pages_core/configuration/base.rb,
lib/pages_core/configuration/pages.rb,
app/helpers/pages_core/form_builder.rb,
app/jobs/pages_core/autopublish_job.rb,
app/jobs/pages_core/sweep_cache_job.rb,
lib/pages_core/page_path_constraint.rb,
app/helpers/pages_core/images_helper.rb,
app/helpers/pages_core/frontend_helper.rb,
app/services/pages_core/invite_service.rb,
lib/pages_core/templates/configuration.rb,
app/formatters/pages_core/link_renderer.rb,
app/helpers/pages_core/head_tags_helper.rb,
app/helpers/pages_core/meta_tags_helper.rb,
app/helpers/pages_core/page_path_helper.rb,
app/models/concerns/pages_core/taggable.rb,
app/formatters/pages_core/html_formatter.rb,
app/models/concerns/pages_core/has_roles.rb,
app/models/concerns/pages_core/sweepable.rb,
app/helpers/pages_core/admin/admin_helper.rb,
app/helpers/pages_core/admin/form_builder.rb,
app/helpers/pages_core/application_helper.rb,
app/controllers/pages_core/base_controller.rb,
app/controllers/pages_core/admin_controller.rb,
app/services/pages_core/create_user_service.rb,
lib/pages_core/extensions/string_extensions.rb,
lib/pages_core/templates/controller_actions.rb,
app/controllers/pages_core/images_controller.rb,
lib/pages_core/templates/block_configuration.rb,
lib/pages_core/templates/configuration_proxy.rb,
app/helpers/pages_core/open_graph_tags_helper.rb,
app/controllers/pages_core/frontend_controller.rb,
app/controllers/pages_core/sitemaps_controller.rb,
app/helpers/pages_core/admin/tag_editor_helper.rb,
app/models/concerns/pages_core/page_model/tree.rb,
lib/pages_core/templates/configuration_handler.rb,
lib/pages_core/templates/template_configuration.rb,
app/models/concerns/pages_core/humanizable_param.rb,
app/models/concerns/pages_core/page_model/images.rb,
app/models/concerns/pages_core/page_model/status.rb,
app/controllers/concerns/pages_core/authentication.rb,
app/controllers/concerns/pages_core/error_renderer.rb,
app/controllers/concerns/pages_core/process_titler.rb,
app/controllers/concerns/pages_core/rss_controller.rb,
app/helpers/pages_core/admin/labelled_field_helper.rb,
app/models/concerns/pages_core/page_model/pathable.rb,
app/models/concerns/pages_core/page_model/sortable.rb,
app/controllers/concerns/pages_core/policies_helper.rb,
app/controllers/pages_core/frontend/pages_controller.rb,
app/models/concerns/pages_core/page_model/dated_page.rb,
app/models/concerns/pages_core/page_model/localizable.rb,
lib/rails/generators/pages_core/rspec/rspec_generator.rb,
app/controllers/concerns/pages_core/domain_based_cache.rb,
app/models/concerns/pages_core/page_model/redirectable.rb,
app/models/concerns/pages_core/page_model/templateable.rb,
app/controllers/pages_core/frontend/page_files_controller.rb,
app/models/concerns/pages_core/page_model/autopublishable.rb,
lib/rails/generators/pages_core/install/install_generator.rb,
lib/rails/generators/pages_core/frontend/frontend_generator.rb,
app/controllers/concerns/pages_core/preview_pages_controller.rb,
app/controllers/concerns/pages_core/admin/news_page_controller.rb

Overview

Abstract controller for all frontend controllers.

Defined Under Namespace

Modules: Admin, ApplicationHelper, Authentication, Configuration, DomainBasedCache, ErrorRenderer, Extensions, Frontend, FrontendHelper, Generators, HasRoles, HeadTagsHelper, HumanizableParam, ImagesHelper, MetaTagsHelper, OpenGraphTagsHelper, PageModel, PagePathHelper, PoliciesHelper, PreviewPagesController, ProcessTitler, PubSub, RssController, Sweepable, Taggable, Templates Classes: AdminController, AdminMenuItem, ArchiveFinder, AutopublishJob, BaseController, CacheSweeper, CreateUserService, Engine, FileEmbedder, FormBuilder, FrontendController, HtmlFormatter, ImagesController, InviteService, LinkRenderer, NotAuthorized, PagePathConstraint, PagesPlugin, Plugin, SitemapsController, SweepCacheJob

Constant Summary collapse

VERSION =
"3.6.0.alpha".freeze

Class Method Summary collapse

Class Method Details

.configuration(key = nil, *args) ⇒ Object Also known as: config


72
73
74
75
76
77
78
79
# File 'lib/pages_core.rb', line 72

def configuration(key = nil, *args)
  @configuration ||= PagesCore::Configuration::Pages.new
  if key
    @configuration.send(key, *args)
  else
    @configuration
  end
end

.configure(_options = {}) {|configuration| ... } ⇒ Object

Yields:


68
69
70
# File 'lib/pages_core.rb', line 68

def configure(_options = {}, &_block)
  yield configuration if block_given?
end

.plugin_rootObject


64
65
66
# File 'lib/pages_core.rb', line 64

def plugin_root
  Pathname.new(File.dirname(__FILE__)).join("..").expand_path
end

.versionObject


60
61
62
# File 'lib/pages_core.rb', line 60

def version
  VERSION
end