lib/eco/api/session.rb in eco-helpers-3.0.7 vs lib/eco/api/session.rb in eco-helpers-3.0.8
- old
+ new
@@ -250,12 +250,16 @@
# @note
# - the default policies are added at the end (meaning they will run after the custom policies)
# @return [Eco::API::Policies]
def policies
@policies ||= config.policies.dup.tap do |policies|
- default_policies = Eco::API::Policies::DefaultPolicies.new
policies.merge(default_policies)
end
+ end
+
+ # The native policies
+ def default_policies
+ @default_policies ||= Eco::API::Policies::DefaultPolicies.new
end
# Set of helpers to simplify your code
# @see Eco::API::MicroCases
# @return [Eco::API::MicroCases]