lib/ecoportal/api/internal/policy_groups.rb in ecoportal-api-0.1.9 vs lib/ecoportal/api/internal/policy_groups.rb in ecoportal-api-0.1.10

- old
+ new

@@ -9,12 +9,12 @@ end def get_all response = @client.get("/policy_groups") Common::WrappedResponse.new(response, Internal::PolicyGroup) end - def each(params: {}, &block) + def each(&block) + return to_enum(:each) unless block get_all.each(&block) - self end end end end end