I hereby claim:
- I am wgrrrr on github.
- I am wgrrrr (https://keybase.io/wgrrrr) on keybase.
- I have a public key whose fingerprint is 22E7 27C6 BF05 441F 54F4 C72B 9FF4 A6CB 669A CC61
To claim this, I am signing this object:
/// <summary> | |
/// Uses the supplied entity as search criteria and returns matching records. When more than one entity properties | |
/// are populated it will use an AND in the query. | |
/// </summary> | |
/// <remarks> | |
/// Only simple properties such as strings and value types can be evaluated by this method. If you require a more | |
/// advanced query you should add an entity specific DbRepository class which extends this class. | |
/// </remarks> | |
/// <param name="example">The entity to use as an example</param> | |
public virtual IQueryable<TEntity> GetByExample(TEntity example) |
I hereby claim:
To claim this, I am signing this object:
@helper TimeAgoInWords(DateTime dateTime) { | |
<time class="timeago" datetime="@dateTime.ToString("yyyy-MM-ddTHH:mm:ssK")" title="@dateTime.ToString("f")"> | |
@dateTime.ToString("f") | |
</time> | |
} |
def merge_where_clause_with_or(relations) | |
relations.map { |relation| relation.arel.where_clauses }.join(' OR ') | |
end | |
# Usage | |
model.where(merge_where_clause_with_or(array_of_relations)) |