lib/eco/api/session/config.rb in eco-helpers-3.0.7 vs lib/eco/api/session/config.rb in eco-helpers-3.0.8
- old
+ new
@@ -363,9 +363,10 @@
end
# @return [Eco::API::Policies]
def policies
@policies = self["policies"] ||= Eco::API::Policies.new
+
if block_given?
yield(@policies)
self
else
@policies