Skip to content

Commit

Permalink
WIP test
Browse files Browse the repository at this point in the history
  • Loading branch information
that-jill committed Nov 5, 2024
1 parent 7bf82e4 commit 99ee4ff
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions packages/consent/lib/consent/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99ee4ff

Please sign in to comment.