Sha256: 8e3fe16a25e60702867fc24c2e3eaa2a31a8ddd36b0e08d601ec31a0a4561b3f

Contents?: true

Size: 562 Bytes

Versions: 7

Compression:

Stored size: 562 Bytes

Contents

module WebsiteSettings
  extend ActiveSupport::Concern

  included do
    before_filter :set_website_settings

    def set_website_settings
      @domain      = ::Settings.value("Website::Domain")
      @title       = ::Settings.value("Website::Title")
      @description = ::Settings.value("Website::Description")
      @ga_id       = ::Settings.value("Website::Google Analytics ID")
      @ga_domain   = @domain.gsub('www.', '')

      @header_html = ::Settings.value("Layout::Header")
      @footer_html = ::Settings.value("Layout::Footer")
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
character-1.0.6 app/controllers/concerns/website_settings.rb
character-1.0.5 app/controllers/concerns/website_settings.rb
character-1.0.4 app/controllers/concerns/website_settings.rb
character-1.0.3 app/controllers/concerns/website_settings.rb
character-1.0.2 app/controllers/concerns/website_settings.rb
character-1.0.1 app/controllers/concerns/website_settings.rb
character-1.0.0 app/controllers/concerns/website_settings.rb