Goldencobra
Goldencobra copied to clipboard
Provide an `of_articletype_or` scope for Goldencobra::Article
There is this scope: https://github.com/ikuseiGmbH/Goldencobra/blob/master/app/models/goldencobra/article.rb#L126
scope :articletype, lambda{ |name| where(article_type: name)}
We need a second scope, that uses OR
for scoping.
use case would be something like this?
Goldencobra::Article.articletype(["Report Index", "Event Show"], any: true)
Yes, something like this. Do you want to create a Pull Request for this? 😄