Sha256: 69cb3c9425ad039b300d30798376a44f8d70ed115c3ec173b60e359d4d041460
Contents?: true
Size: 1.19 KB
Versions: 1
Compression:
Stored size: 1.19 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.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
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tb_core-1.3.0 | lib/spud_core/configuration.rb |