Module: Controllers::SmsTab
- Extended by:
- ActiveSupport::Concern
- Included in:
- Crm::SmsMessagesController, CustomersController, OpportunitiesController, OrdersController, QuotesController
- Defined in:
- app/concerns/controllers/sms_tab.rb
Overview
Shared query logic for the "SMS" tab content rendered on Quote /
Order / Opportunity / Customer (and other) show pages and
inline-fetched by their respective tab_sms actions.
Inclusion gives the host controller a private build_sms_tab_data
helper that assigns the six instance variables the
crm/sms_messages/_tab_content partial expects:
@context_object — parent record
@context_sms_contact_points — SMS-enabled contact points on the context
@return_path — URL "New SMS" affordances return to
@q — Ransack search object
@pagy — Pagy::Pagy paginator
@sms_messages — paginated, includes-eager-loaded result set