Skip to content

Commit

Permalink
Changed __ prefix to private. (#327)
Browse files Browse the repository at this point in the history
  • Loading branch information
wout authored Mar 16, 2020
1 parent 2193efa commit 848d667
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/avram/criteria.cr
Original file line number Diff line number Diff line change
Expand Up @@ -130,17 +130,17 @@ class Avram::Criteria(T, V)
end

# :nodoc:
def __distinct_on : Avram::QueryBuilder
def private_distinct_on : Avram::QueryBuilder
rows.query.distinct_on(column)
end

# :nodoc:
def __group : Avram::QueryBuilder
def private_group : Avram::QueryBuilder
rows.query.group_by(column)
end

# :nodoc:
def __reset_where : Avram::QueryBuilder
def private_reset_where : Avram::QueryBuilder
rows.query.reset_where(column)
end

Expand Down
6 changes: 3 additions & 3 deletions src/avram/queryable.cr
Original file line number Diff line number Diff line change
Expand Up @@ -74,13 +74,13 @@ module Avram::Queryable(T)

def distinct_on(&block) : self
criteria = yield self
criteria.__distinct_on
criteria.private_distinct_on
self
end

def reset_where(&block) : self
criteria = yield self
criteria.__reset_where
criteria.private_reset_where
self
end

Expand Down Expand Up @@ -128,7 +128,7 @@ module Avram::Queryable(T)

def group(&block) : self
criteria = yield self
criteria.__group
criteria.private_group
self
end

Expand Down

0 comments on commit 848d667

Please sign in to comment.