Class: Decidim::Meetings::MeetingSearch
- Inherits:
-
ResourceSearch
- Object
- ResourceSearch
- Decidim::Meetings::MeetingSearch
- Defined in:
- app/services/decidim/meetings/meeting_search.rb
Overview
This service scopes the meeting searches with parameters that cannot be passed from the user interface.
Instance Attribute Summary collapse
-
#activity ⇒ Object
readonly
Returns the value of attribute activity.
Instance Method Summary collapse
Instance Attribute Details
#activity ⇒ Object (readonly)
Returns the value of attribute activity.
8 9 10 |
# File 'app/services/decidim/meetings/meeting_search.rb', line 8 def activity @activity end |
Instance Method Details
#build(params) ⇒ Object
10 11 12 13 14 15 16 |
# File 'app/services/decidim/meetings/meeting_search.rb', line 10 def build(params) @activity = params[:activity] add_scope(:authored_by, user) if params[:activity] == "my_meetings" && user super end |