Use File.join instead of hard-coding slashes

This commit is contained in:
Neil Lalonde 2013-11-15 14:34:03 -05:00
parent fc180ccd71
commit dfdc618e9a
1 changed files with 1 additions and 1 deletions

View File

@ -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