Module: LeanCms

Defined in:
lib/lean_cms.rb,
lib/lean_cms/engine.rb,
lib/lean_cms/loader.rb,
lib/lean_cms/version.rb,
app/models/lean_cms/page.rb,
app/models/lean_cms/post.rb,
lib/lean_cms/sync_helper.rb,
lib/lean_cms/configuration.rb,
app/models/lean_cms/current.rb,
app/models/lean_cms/session.rb,
app/models/lean_cms/meta_tag.rb,
app/models/lean_cms/magic_link.rb,
app/models/lean_cms/page_content.rb,
app/mailers/lean_cms/users_mailer.rb,
app/policies/lean_cms/post_policy.rb,
app/helpers/lean_cms/content_helper.rb,
app/models/lean_cms/form_submission.rb,
app/helpers/lean_cms/activity_helper.rb,
app/policies/lean_cms/setting_policy.rb,
app/mailers/lean_cms/passwords_mailer.rb,
app/components/lean_cms/base_component.rb,
app/helpers/lean_cms/application_helper.rb,
app/mailers/lean_cms/application_mailer.rb,
app/helpers/lean_cms/page_content_helper.rb,
app/models/lean_cms/notification_setting.rb,
app/policies/lean_cms/application_policy.rb,
app/components/lean_cms/section_component.rb,
app/controllers/lean_cms/posts_controller.rb,
app/controllers/lean_cms/users_controller.rb,
app/policies/lean_cms/page_content_policy.rb,
lib/generators/lean_cms/demo/demo_generator.rb,
app/controllers/lean_cms/activity_controller.rb,
app/controllers/lean_cms/sessions_controller.rb,
app/controllers/lean_cms/settings_controller.rb,
app/controllers/lean_cms/dashboard_controller.rb,
app/controllers/lean_cms/passwords_controller.rb,
app/components/lean_cms/cards_section_component.rb,
app/controllers/concerns/lean_cms/authorization.rb,
app/controllers/lean_cms/application_controller.rb,
app/controllers/concerns/lean_cms/authentication.rb,
app/components/lean_cms/bullets_section_component.rb,
app/controllers/lean_cms/notifications_controller.rb,
app/controllers/lean_cms/page_contents_controller.rb,
lib/generators/lean_cms/install/install_generator.rb,
app/components/lean_cms/editable_content_component.rb,
app/controllers/lean_cms/password_setup_controller.rb,
app/controllers/lean_cms/form_submissions_controller.rb,
app/controllers/lean_cms/notification_settings_controller.rb

Defined Under Namespace

Modules: ActivityHelper, ApplicationHelper, Authentication, Authorization, ContentHelper, Generators, PageContentHelper Classes: ActivityController, ApplicationController, ApplicationMailer, ApplicationPolicy, BaseComponent, BulletsSectionComponent, CardsSectionComponent, Current, DashboardController, EditableContentComponent, Engine, FormSubmission, FormSubmissionsController, Loader, MagicLink, MetaTag, NotificationSetting, NotificationSettingsController, NotificationsController, Page, PageContent, PageContentPolicy, PageContentsController, PasswordSetupController, PasswordsController, PasswordsMailer, Post, PostPolicy, PostsController, SectionComponent, Session, SessionsController, Setting, SettingPolicy, SettingsController, SyncHelper, UsersController, UsersMailer

Constant Summary collapse

VERSION =
"0.2.12"

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.admin_pathObject

Returns the value of attribute admin_path.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def admin_path
  @admin_path
end

.docs_urlObject

Returns the value of attribute docs_url.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def docs_url
  @docs_url
end

.mailer_fromObject

Returns the value of attribute mailer_from.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def mailer_from
  @mailer_from
end

.portfolio_enabledObject

Returns the value of attribute portfolio_enabled.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def portfolio_enabled
  @portfolio_enabled
end

.posts_per_pageObject

Returns the value of attribute posts_per_page.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def posts_per_page
  @posts_per_page
end

.primary_colorObject

Returns the value of attribute primary_color.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def primary_color
  @primary_color
end

.secondary_colorObject

Returns the value of attribute secondary_color.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def secondary_color
  @secondary_color
end

.site_logo_pathObject

Returns the value of attribute site_logo_path.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def site_logo_path
  @site_logo_path
end

.site_nameObject

Returns the value of attribute site_name.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def site_name
  @site_name
end

.user_classObject

Returns the value of attribute user_class.



3
4
5
# File 'lib/lean_cms/configuration.rb', line 3

def user_class
  @user_class
end

Class Method Details

.configure {|_self| ... } ⇒ Object

Yields:

  • (_self)

Yield Parameters:

  • _self (LeanCms)

    the object that the method was called on



14
15
16
# File 'lib/lean_cms/configuration.rb', line 14

def configure
  yield self
end

.table_name_prefixObject

Table name prefix for all Lean CMS models



23
24
25
# File 'lib/lean_cms.rb', line 23

def self.table_name_prefix
  "lean_cms_"
end