Class: Decidim::ActionDelegator::SettingDelegations

Inherits:
Query
  • Object
show all
Defined in:
app/queries/decidim/action_delegator/setting_delegations.rb

Instance Method Summary collapse

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

#queryObject



10
11
12
# File 'app/queries/decidim/action_delegator/setting_delegations.rb', line 10

def query
  Delegation.where(setting: setting)
end