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/static_cache.rb,
lib/pages_core/cache_sweeper.rb,
lib/pages_core/configuration.rb,
lib/pages_core/archive_finder.rb,
lib/pages_core/admin_menu_item.rb,
lib/pages_core/digest_verifier.rb,
lib/pages_core/configuration/base.rb,
lib/pages_core/attachment_embedder.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/locales_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/formatters/pages_core/image_embedder.rb,
app/models/concerns/pages_core/emailable.rb,
app/models/concerns/pages_core/has_roles.rb,
app/models/concerns/pages_core/sweepable.rb,
lib/pages_core/static_cache/null_handler.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/helpers/pages_core/attachments_helper.rb,
app/controllers/pages_core/base_controller.rb,
app/controllers/pages_core/admin_controller.rb,
app/helpers/pages_core/admin/locales_helper.rb,
app/services/pages_core/create_user_service.rb,
lib/pages_core/extensions/string_extensions.rb,
lib/pages_core/static_cache/varnish_handler.rb,
lib/pages_core/templates/controller_actions.rb,
app/controllers/pages_core/images_controller.rb,
app/helpers/pages_core/labelled_form_builder.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/date_range_helper.rb,
app/helpers/pages_core/admin/tag_editor_helper.rb,
app/models/concerns/pages_core/page_model/tree.rb,
app/services/pages_core/destroy_invite_service.rb,
lib/pages_core/static_cache/page_cache_handler.rb,
lib/pages_core/templates/configuration_handler.rb,
lib/pages_core/templates/template_configuration.rb,
app/helpers/pages_core/admin/content_tabs_helper.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/pages_core/attachments_controller.rb,
app/helpers/pages_core/admin/image_uploads_helper.rb,
app/models/concerns/pages_core/authenticable_user.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/models/concerns/pages_core/searchable_document.rb,
app/controllers/concerns/pages_core/error_reporting.rb,
app/controllers/concerns/pages_core/page_parameters.rb,
app/controllers/concerns/pages_core/policies_helper.rb,
app/controllers/concerns/pages_core/ranged_response.rb,
app/helpers/pages_core/admin/localized_form_builder.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/searchable.rb,
app/models/concerns/pages_core/page_model/attachments.rb,
app/models/concerns/pages_core/page_model/localizable.rb,
lib/rails/generators/pages_core/rspec/rspec_generator.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,
app/controllers/concerns/pages_core/static_cache_controller.rb,
lib/rails/generators/pages_core/frontend/frontend_generator.rb,
app/controllers/concerns/pages_core/preview_pages_controller.rb
Overview
Abstract controller for all frontend controllers.
Defined Under Namespace
Modules: Admin, ApplicationHelper, AttachmentsHelper, AuthenticableUser, Authentication, Configuration, Emailable, ErrorRenderer, ErrorReporting, Extensions, Frontend, FrontendHelper, Generators, HasRoles, HeadTagsHelper, HumanizableParam, ImagesHelper, LabelledFormBuilder, LocalesHelper, MetaTagsHelper, OpenGraphTagsHelper, PageModel, PageParameters, PagePathHelper, PoliciesHelper, PreviewPagesController, ProcessTitler, PubSub, RangedResponse, RssController, SearchableDocument, StaticCache, StaticCacheController, Sweepable, Taggable, Templates
Classes: AdminController, AdminMenuItem, ArchiveFinder, AttachmentEmbedder, AttachmentsController, AutopublishJob, BaseController, CacheSweeper, CreateUserService, DestroyInviteService, DigestVerifier, Engine, FormBuilder, FrontendController, HtmlFormatter, ImageEmbedder, ImagesController, InviteService, LinkRenderer, NotAuthorized, PagePathConstraint, PagesPlugin, Plugin, SitemapsController, SweepCacheJob
Constant Summary
collapse
- VERSION =
File.read(File.expand_path("../../VERSION", __dir__)).strip
Class Method Summary
collapse
Class Method Details
.configuration(key = nil, *args) ⇒ Object
Also known as:
config
80
81
82
83
84
85
86
87
|
# File 'lib/pages_core.rb', line 80
def configuration(key = nil, *args)
@configuration ||= PagesCore::Configuration::Pages.new
if key
@configuration.send(key, *args)
else
@configuration
end
end
|
76
77
78
|
# File 'lib/pages_core.rb', line 76
def configure(_options = {}, &)
yield configuration if block_given?
end
|
.plugin_root ⇒ Object
72
73
74
|
# File 'lib/pages_core.rb', line 72
def plugin_root
Pathname.new(File.dirname(__FILE__)).join("..").expand_path
end
|
.reset_configuration! ⇒ Object
.version ⇒ Object
68
69
70
|
# File 'lib/pages_core.rb', line 68
def version
VERSION
end
|