Sha256: fa1a3c5bd87fc8af178cbeecff4048eda8bba22ae9a8f052347ecf7601934cf7
Contents?: true
Size: 1.87 KB
Versions: 9
Compression:
Stored size: 1.87 KB
Contents
module Spud module Core include ActiveSupport::Configurable config_accessor :site_name, :admin_applications, :from_address, :site_id, :short_name, :javascripts, :stylesheets, :admin_javascripts, :admin_stylesheets, :permissions, :production_alert_domain, :use_email_as_login self.admin_applications = [] self.site_name = "Company Name" self.site_id = 0 self.short_name = 'default' self.javascripts = [] self.stylesheets = [] self.from_address = "no-reply@companyname.com" self.permissions = [] self.admin_javascripts = ['admin/core/application', 'admin/application'] self.admin_stylesheets = ['admin/core/application', 'admin/application'] self.production_alert_domain = nil self.use_email_as_login = false def self.site_config_for_host(host) ActiveSupport::Deprecation.warn 'Spud::Core.site_config_for_host is deprecated and will be removed in the future' return default_site_config end def self.site_config_for_id(id) ActiveSupport::Deprecation.warn 'Spud::Core.site_config_for_id is deprecated and will be removed in the future' return default_site_config end def self.default_site_config ActiveSupport::Deprecation.warn 'Spud::Core.default_site_config is deprecated and will be removed in the future' return {:site_id => Spud::Core.config.site_id, :site_name => Spud::Core.config.site_name, :short_name => Spud::Core.config.short_name} end def self.append_admin_javascripts(*args) if args[0].class == Array Spud::Core.config.admin_javascripts += args[0] else Spud::Core.config.admin_javascripts += args end end def self.append_admin_stylesheets(*args) if args[0].class == Array Spud::Core.config.admin_stylesheets += args[0] else Spud::Core.config.admin_stylesheets += args end end end end
Version data entries
9 entries across 9 versions & 1 rubygems