Sha256: a2da89f72a6b394f4e595ad3611c8e5e5543c9911d5c9d90d4f409bebfea5f4d

Contents?: true

Size: 747 Bytes

Versions: 2

Compression:

Stored size: 747 Bytes

Contents

module Spud
  module Core
    include ActiveSupport::Configurable
    config_accessor :site_name,:admin_applications,:sitemap_urls,:multisite_mode_enabled,:multisite_config,:from_address
    self.admin_applications = [{:name => "Users",:thumbnail => "spud/admin/users_thumb.png",:url => "/spud/admin/users",:order => 100}]
    self.site_name = "Company Name"
    self.sitemap_urls = []
    self.multisite_mode_enabled = false
    self.multisite_config = []
    self.from_address = "no-reply@spudengine.com"
    def self.site_config_for_host(host)
        configs = Spud::Core.multisite_config.select{|p| p[:hosts].include?(host)}
        if configs.blank?
          return nil
        else
          return configs[0]
        end
  	end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spud_core-0.8.13 lib/spud_core/configuration.rb
spud_core-0.8.12 lib/spud_core/configuration.rb