Module: Spud::Cms

Includes:
ActiveSupport::Configurable
Defined in:
lib/spud_cms.rb,
lib/spud_cms/engine.rb,
lib/spud_cms/version.rb,
lib/spud_cms/test_files.rb,
lib/spud_cms/configuration.rb,
lib/spud_cms/liquid_snippet.rb,
lib/spud_cms/template_parser.rb

Defined Under Namespace

Modules: ApplicationHelper, TestFiles Classes: Engine, LiquidSnippet, SitemapsController, TemplateGenerator, TemplateParser

Constant Summary collapse

VERSION =
"1.0.2"

Class Method Summary collapse

Class Method Details

.site_config_for_short_name(short_name) ⇒ Object


17
18
19
20
21
22
23
24
# File 'lib/spud_cms/configuration.rb', line 17

def self.site_config_for_short_name(short_name)
    configs = Spud::Cms.multisite_config.select{|p| p[:short_name].to_s == short_name.to_s}
    if configs.blank?
      return nil
    else
      return configs[0]
    end
end