lib/restly/configuration.rb in restly-0.0.1.alpha.6 vs lib/restly/configuration.rb in restly-0.0.1.alpha.7
- old
+ new
@@ -39,9 +39,11 @@
def respond_to_missing?
true
end
- config_file = File.join(Rails.root, 'config', 'restly.yml')
- load_config YAML.load_file(config_file)[Rails.env] if defined?(Rails) && File.exists?(config_file)
+ if defined?(Rails)
+ config_file = File.join(Rails.root, 'config', 'restly.yml')
+ load_config YAML.load_file(config_file)[Rails.env] if File.exists?(config_file)
+ end
end
\ No newline at end of file