lib/newsletter/settings.rb in newsletter-0.1.2 vs lib/newsletter/settings.rb in newsletter-3.0.0
- old
+ new
@@ -39,12 +39,12 @@
local_file = File.join(Rails.root,'config','newsletter.local.yml')
unless File.exists?(standard_file)
$stderr.puts "Missing Configuration: either define ::Conf with proper values or create a config/newsletter.yml with rake newsletter:default_app_config"
end
c = ::Newsletter::Settings.new
- c.use_file!("#{Rails.root}/config/newsletter.yml")
- c.use_file!("#{Rails.root}/config/newsletter.local.yml")
+ c.use_file!(standard_file)
+ c.use_file!(local_file)
c.use_section!(Rails.env)
c
end
-end
\ No newline at end of file
+end