lib/open-weather-api/config.rb in open-weather-api-0.0.6 vs lib/open-weather-api/config.rb in open-weather-api-0.0.7
- old
+ new
@@ -1,9 +1,9 @@
-module OpenWeatherAPI
- def self.configure(&block)
- raise ArgumentError, 'No block was given.' unless block
-
- api = Rails.configuration.open_weather_api = OpenWeatherAPI::API.new
- block.call(api)
- api
- end
+module OpenWeatherAPI
+ def self.configure(&block)
+ raise ArgumentError, 'No block was given.' unless block
+
+ api = Rails.configuration.open_weather_api = OpenWeatherAPI::API.new
+ block.call(api)
+ api
+ end
end
\ No newline at end of file