diff --git a/packages/consent/lib/consent/dsl.rb b/packages/consent/lib/consent/dsl.rb index 2fd987f6..e3e6d6cc 100644 --- a/packages/consent/lib/consent/dsl.rb +++ b/packages/consent/lib/consent/dsl.rb @@ -14,15 +14,15 @@ def with_defaults(new_defaults, &block) DSL.build(@subject, @defaults.merge(new_defaults), &block) end - # rubocop:disable Lint/UnusedBlockArgument, Security/Eval + # rubocop:disable Lint/UnusedBlockArgument def eval_view(key, label, collection_conditions) view key, label do |user| - eval(collection_conditions) + # eval(collection_conditions) # made to fail - eval(collection_conditions) + # eval(collection_conditions) end end - # rubocop:enable Lint/UnusedBlockArgument, Security/Eval + # rubocop:enable Lint/UnusedBlockArgument def view(key, label, instance = nil, collection = nil, &block) collection ||= block