Skip to content

Commit

Permalink
Remove unused, unsafe method
Browse files Browse the repository at this point in the history
  • Loading branch information
that-jill committed Nov 8, 2024
1 parent f5a852e commit 130afed
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 16 deletions.
8 changes: 0 additions & 8 deletions bearer.ignore
Original file line number Diff line number Diff line change
@@ -1,8 +0,0 @@
{
"2314bd71cca49a48fe84485b966be0b6_0": {
"author": "Jill Klang",
"comment": "Ignoring this finding for now",
"false_positive": false,
"ignored_at": "2024-11-06T20:12:15Z"
}
}
2 changes: 2 additions & 0 deletions packages/consent/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
## [Unreleased]

- removed eval_view as a legacy, unsafe concern

## [2.0.1] - 2023-01-08

- Bugfixes, minor version bumps
Expand Down
8 changes: 0 additions & 8 deletions packages/consent/lib/consent/dsl.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,14 +14,6 @@ def with_defaults(new_defaults, &block)
DSL.build(@subject, @defaults.merge(new_defaults), &block)
end

# rubocop:disable Lint/UnusedBlockArgument, Security/Eval
def eval_view(key, label, collection_conditions)
view key, label do |user|
eval(collection_conditions)
end
end
# rubocop:enable Lint/UnusedBlockArgument, Security/Eval

def view(key, label, instance = nil, collection = nil, &block)
collection ||= block
@subject.views[key] = View.new(key, label, instance, collection)
Expand Down

0 comments on commit 130afed

Please sign in to comment.