Use File.join instead of hard-coding slashes
This commit is contained in:
parent
fc180ccd71
commit
dfdc618e9a
|
@ -7,7 +7,7 @@ class SiteSetting < ActiveRecord::Base
|
||||||
validates_presence_of :name
|
validates_presence_of :name
|
||||||
validates_presence_of :data_type
|
validates_presence_of :data_type
|
||||||
|
|
||||||
SiteSettings::YamlLoader.new("#{Rails.root}/config/site_settings.yml").load do |category, name, default, opts|
|
SiteSettings::YamlLoader.new( File.join( Rails.root, 'config', 'site_settings.yml') ).load do |category, name, default, opts|
|
||||||
if opts.delete(:client)
|
if opts.delete(:client)
|
||||||
client_setting(name, default, opts.merge(category: category))
|
client_setting(name, default, opts.merge(category: category))
|
||||||
else
|
else
|
||||||
|
|
Loading…
Reference in New Issue