lib/usps_flags.rb in usps_flags-0.3.15 vs lib/usps_flags.rb in usps_flags-0.3.16
- old
+ new
@@ -38,10 +38,10 @@
@configuration ||= USPSFlags::Config.new
end
# Configuration constructor.
def self.configure
- yield(configuration)
+ yield(configuration) if block_given?
self.ensure_directories
@configuration
end
# Ensures the directory structure exists.