Module: DmCore
- Defined in:
- lib/dm_core/liquid_extensions.rb,
lib/dm_core.rb,
lib/dm_core/engine.rb,
lib/dm_core/version.rb,
lib/dm_core/liquid_extensions.rb,
app/helpers/dm_core/url_helper.rb,
app/models/dm_core/concerns/user.rb,
app/helpers/dm_core/params_helper.rb,
app/helpers/dm_core/render_helper.rb,
app/helpers/dm_core/account_helper.rb,
app/models/dm_core/concerns/ability.rb,
app/models/dm_core/permitted_params.rb,
app/helpers/dm_core/application_helper.rb,
app/models/dm_core/concerns/friendly_id.rb,
app/models/dm_core/concerns/user_profile.rb,
app/models/dm_core/concerns/public_private.rb,
app/models/dm_core/concerns/has_custom_fields.rb,
app/models/dm_core/concerns/user_site_profile.rb,
app/models/dm_core/concerns/defines_custom_fields.rb,
app/controllers/dm_core/concerns/profile_controller.rb,
app/controllers/dm_core/concerns/confirmations_controller.rb,
app/controllers/dm_core/concerns/registrations_controller.rb
Overview
Defined Under Namespace
Modules: AccountHelper, ApplicationHelper, Concerns, LiquidHelper, ParamsHelper, PermittedParams, RenderHelper, UrlHelper Classes: ApplicationController, ConfirmationsController, Country, Engine, Language, LiquidBlock, LiquidTag, ProfileController, RegistrationsController, SiteMailer
Constant Summary collapse
- VERSION =
"4.2.3.8"
Class Method Summary collapse
-
.config ⇒ Object
DmCore configuration values are hung off of the Rails.application.config object and can be accessed as either ‘DmCore.config.valuename` or `Rails.application.config.dm_core.valuename` ——————————————————————————.
-
.configure {|Rails.application.config.dm_core| ... } ⇒ Object
——————————————————————————.
-
.initialize_configuration ⇒ Object
——————————————————————————.
Class Method Details
.config ⇒ Object
DmCore configuration values are hung off of the Rails.application.config object and can be accessed as either ‘DmCore.config.valuename` or `Rails.application.config.dm_core.valuename`
18 19 20 |
# File 'lib/dm_core.rb', line 18 def self.config Rails.application.config.dm_core end |
.configure {|Rails.application.config.dm_core| ... } ⇒ Object
23 24 25 26 |
# File 'lib/dm_core.rb', line 23 def self.configure yield(Rails.application.config.dm_core) if block_given? Rails.application.config.dm_core end |
.initialize_configuration ⇒ Object
29 30 31 32 33 34 35 36 |
# File 'lib/dm_core.rb', line 29 def self.initialize_configuration Rails.application.config.dm_core = ActiveSupport::OrderedOptions.new DmCore.configure do |config| config.locales = [ :en ] config.default_locale = :en config.enable_themes = false end end |