Class: Decidim::Feeds::OrganizationFeeds
- Inherits:
-
Query
- Object
- Query
- Decidim::Feeds::OrganizationFeeds
- Defined in:
- app/queries/decidim/feeds/organization_feeds.rb
Overview
This query class filters all feeds given an organization.
Instance Method Summary collapse
-
#initialize(organization) ⇒ OrganizationFeeds
constructor
A new instance of OrganizationFeeds.
- #query ⇒ Object
Constructor Details
#initialize(organization) ⇒ OrganizationFeeds
7 8 9 |
# File 'app/queries/decidim/feeds/organization_feeds.rb', line 7 def initialize(organization) @organization = organization end |
Instance Method Details
#query ⇒ Object
11 12 13 |
# File 'app/queries/decidim/feeds/organization_feeds.rb', line 11 def query Decidim::Feeds::Feed.where(organization: @organization) end |