lib/sentimeta.rb in sentimeta-0.0.1 vs lib/sentimeta.rb in sentimeta-0.0.2
- old
+ new
@@ -12,11 +12,11 @@
attr_writer :endpoint, :lang
def endpoint
@endpoint ||= begin
config_path = File.join(File.dirname(File.expand_path(__FILE__)), '../config/endpoint.yml')
- config = YAML.load_file(config_path)[env.to_s].symbolize_keys
- config[:url]
+ config = YAML.load_file(config_path)[env.to_s]
+ config['url']
end
end
def lang
if defined?(::I18n) and ::I18n.respond_to?(:locale)