Module: Panda::CMS

Defined in:
lib/panda-cms.rb,
lib/panda/cms.rb,
lib/panda/cms/slug.rb,
lib/panda/cms/debug.rb,
lib/panda/cms/engine.rb,
lib/panda-cms/version.rb,
lib/panda/cms/railtie.rb,
lib/panda/cms/features.rb,
app/models/panda/cms/form.rb,
app/models/panda/cms/menu.rb,
app/models/panda/cms/page.rb,
app/models/panda/cms/post.rb,
lib/panda/cms/bulk_editor.rb,
app/models/panda/cms/block.rb,
app/models/panda/cms/visit.rb,
lib/panda/cms/asset_loader.rb,
app/models/panda/cms/current.rb,
lib/panda/cms/exceptions_app.rb,
app/models/panda/cms/redirect.rb,
app/models/panda/cms/template.rb,
app/models/panda/cms/menu_item.rb,
app/helpers/panda/cms/seo_helper.rb,
lib/panda/cms/engine/core_config.rb,
app/mailers/panda/cms/form_mailer.rb,
lib/panda/cms/demo_site_generator.rb,
lib/panda/cms/engine/asset_config.rb,
lib/panda/cms/engine/route_config.rb,
app/helpers/panda/cms/asset_helper.rb,
app/helpers/panda/cms/forms_helper.rb,
app/helpers/panda/cms/pages_helper.rb,
app/helpers/panda/cms/posts_helper.rb,
app/helpers/panda/cms/theme_helper.rb,
app/jobs/panda/cms/application_job.rb,
app/models/panda/cms/block_content.rb,
lib/panda/cms/engine/helper_config.rb,
app/jobs/panda/cms/record_visit_job.rb,
app/models/panda/cms/form_submission.rb,
lib/panda/cms/engine/autoload_config.rb,
lib/panda/cms/engine/backtrace_config.rb,
app/components/panda/cms/code_component.rb,
app/components/panda/cms/grid_component.rb,
app/components/panda/cms/menu_component.rb,
app/components/panda/cms/text_component.rb,
app/models/panda/cms/application_record.rb,
app/helpers/panda/cms/admin/files_helper.rb,
app/helpers/panda/cms/admin/pages_helper.rb,
app/helpers/panda/cms/admin/posts_helper.rb,
app/helpers/panda/cms/application_helper.rb,
app/mailers/panda/cms/application_mailer.rb,
app/controllers/panda/cms/pages_controller.rb,
app/controllers/panda/cms/posts_controller.rb,
lib/panda/cms/engine/view_component_config.rb,
app/controllers/panda/cms/errors_controller.rb,
app/components/panda/cms/page_menu_component.rb,
app/components/panda/cms/rich_text_component.rb,
app/controllers/panda/cms/admin/base_controller.rb,
app/controllers/panda/cms/admin/files_controller.rb,
app/controllers/panda/cms/admin/forms_controller.rb,
app/controllers/panda/cms/admin/menus_controller.rb,
app/controllers/panda/cms/admin/pages_controller.rb,
app/controllers/panda/cms/admin/posts_controller.rb,
app/controllers/panda/cms/application_controller.rb,
app/controllers/panda/cms/admin/settings_controller.rb,
app/controllers/panda/cms/admin/dashboard_controller.rb,
app/controllers/panda/cms/form_submissions_controller.rb,
app/controllers/panda/cms/admin/block_contents_controller.rb,
app/controllers/panda/cms/admin/settings/bulk_editor_controller.rb

Defined Under Namespace

Modules: Admin, ApplicationHelper, AssetHelper, Debug, Features, FormsHelper, PagesHelper, PostsHelper, SEOHelper, ThemeHelper Classes: ApplicationController, ApplicationJob, ApplicationMailer, ApplicationRecord, AssetLoader, Block, BlockContent, BlockError, BulkEditor, CodeComponent, Configuration, Current, DemoSiteGenerator, Engine, ErrorsController, ExceptionsApp, Form, FormMailer, FormSubmission, FormSubmissionsController, GridComponent, Menu, MenuComponent, MenuItem, MissingBlockError, Page, PageMenuComponent, PagesController, Post, PostsController, Railtie, RecordVisitJob, Redirect, RichTextComponent, Slug, Template, TextComponent, Visit

Constant Summary collapse

VERSION =
"0.10.2"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject



51
52
53
# File 'lib/panda-cms.rb', line 51

def configuration
  @configuration ||= Configuration.new
end

.loaderObject

Returns the value of attribute loader.



74
75
76
# File 'lib/panda-cms.rb', line 74

def loader
  @loader
end

Class Method Details

.configObject



55
56
57
# File 'lib/panda-cms.rb', line 55

def config
  configuration
end

.configure {|configuration| ... } ⇒ Object

Yields:



59
60
61
# File 'lib/panda-cms.rb', line 59

def configure
  yield configuration if block_given?
end

.reset_configuration!Object



63
64
65
# File 'lib/panda-cms.rb', line 63

def reset_configuration!
  @configuration = Configuration.new
end

.root_pathObject



68
69
70
71
# File 'lib/panda-cms.rb', line 68

def self.root_path
  # Delegate to Panda::Core's admin_path configuration
  Panda::Core.config.admin_path
end

.route_namespaceObject



76
77
78
79
# File 'lib/panda-cms.rb', line 76

def route_namespace
  # Delegate to Panda::Core's admin_path configuration
  Panda::Core.config.admin_path
end