Skip to content

Commit

Permalink
Merge pull request #1169 from projecthydra/doc
Browse files Browse the repository at this point in the history
Add return value YARD doc
  • Loading branch information
cbeer committed Oct 28, 2016
2 parents 5fde7b6 + c06d47e commit ac88961
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/active_fedora/relation/finder_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -240,11 +240,13 @@ def find_some(ids, cast)

# Returns a solr query for the supplied conditions
# @param[Hash,String,Array] conditions solr conditions to match
# @return [String]
def create_query(conditions)
build_query(build_where(conditions))
end

# @param [Array<String>] conditions
# @return [String]
def build_query(conditions)
clauses = search_model_clause ? [search_model_clause] : []
clauses += conditions.reject(&:blank?)
Expand Down

0 comments on commit ac88961

Please sign in to comment.