lib/rails/auth/acl.rb in rails-auth-2.1.4 vs lib/rails/auth/acl.rb in rails-auth-2.2.0

- old
+ new

@@ -1,5 +1,7 @@ +# frozen_string_literal: true + # Pull in default matchers require "rails/auth/acl/matchers/allow_all" module Rails module Auth @@ -15,10 +17,12 @@ # Create a Rails::Auth::ACL from a YAML representation of an ACL # # @param [String] :yaml serialized YAML to load an ACL from def self.from_yaml(yaml, **args) require "yaml" + # rubocop:todo Security/YAMLLoad new(YAML.load(yaml), **args) + # rubocop:enable Security/YAMLLoad end # @param [Array<Hash>] :acl Access Control List configuration # @param [Hash] :matchers authorizers use with this ACL #