lib/rock_config.rb in rock_config-0.0.4 vs lib/rock_config.rb in rock_config-0.0.5
- old
+ new
@@ -19,13 +19,13 @@
end
private
def detect_environment
- @detected_environment ||= lambda do
- detector = EnvironmentDetector.new(ENV)
- detector.detect
- end.call
+ @detected_environment ||= begin
+ detector = EnvironmentDetector.new(ENV)
+ detector.detect
+ end
end
def configuration
@configuration ||= initialize_configuration
end