Skip to content

Make subclasses of Sift::Filter for Where and Scope#49

Merged
andrew-wheeler merged 1 commit intoaw/scope_arraysfrom
aw/scope_arrays_2
May 5, 2020
Merged

Make subclasses of Sift::Filter for Where and Scope#49
andrew-wheeler merged 1 commit intoaw/scope_arraysfrom
aw/scope_arrays_2

Conversation

@andrew-wheeler
Copy link

Worth?


def initialize(param, type, internal_name, default, custom_validate = nil, scope_params = [], scope_types = [])
def self.scope_type?(type)
type == :scope || type.respond_to?(:key?)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do you think the type.respond_to?(:key?) is needed here? I think before it was mostly used for raising an error message which is now triggered by valid_scope_params

@andrew-wheeler andrew-wheeler merged commit f79299c into aw/scope_arrays May 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants