Class: Decidim::ActionDelegator::SettingDelegations
- Inherits:
-
Query
- Object
- Query
- Decidim::ActionDelegator::SettingDelegations
- Defined in:
- app/queries/decidim/action_delegator/setting_delegations.rb
Instance Method Summary collapse
-
#initialize(setting) ⇒ SettingDelegations
constructor
A new instance of SettingDelegations.
- #query ⇒ Object
Constructor Details
#initialize(setting) ⇒ SettingDelegations
Returns a new instance of SettingDelegations.
6 7 8 |
# File 'app/queries/decidim/action_delegator/setting_delegations.rb', line 6 def initialize(setting) @setting = setting end |
Instance Method Details
#query ⇒ Object
10 11 12 |
# File 'app/queries/decidim/action_delegator/setting_delegations.rb', line 10 def query Delegation.where(setting: setting) end |