Skip to content

Commit

Permalink
Merge pull request #25 from Genius/define-method-not-valid-scope
Browse files Browse the repository at this point in the history
define_method is never valid msl scope
  • Loading branch information
ywenc authored Feb 11, 2020
2 parents 2156975 + d3e5256 commit 9ffde99
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/modern_searchlogic/column_conditions.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ def respond_to_missing?(method, *)
end

def valid_searchlogic_scope?(method)
return false if method =~ /^define_method_/

searchlogic_scope_dynamically_defined?(method) ||
!!searchlogic_column_condition_method_block(method.to_s) ||
_defined_scopes.include?(method.to_sym)
Expand Down

0 comments on commit 9ffde99

Please sign in to comment.