Skip to content

Commit

Permalink
Make matches/has_locale public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
shioyama committed Apr 7, 2018
1 parent 4643410 commit 852d0f1
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions lib/mobility/backends/sequel/pg_query_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,14 @@ def create_query!(cond, keys, invert = false)
}.inject(invert ? :| : :&)
end

def matches(_key, _value, _locale)
raise NotImplementedError
end

def has_locale(_key, _locale)
raise NotImplementedError
end

private

def define_query_methods
Expand Down Expand Up @@ -78,13 +86,6 @@ def create_query_op(key, value, invert)
end
end

def matches(_key, _value, _locale)
raise NotImplementedError
end

def has_locale(_key, _locale)
raise NotImplementedError
end

def column_name(attribute)
(column_affix % attribute).to_sym
Expand Down

0 comments on commit 852d0f1

Please sign in to comment.