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 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
@sms_threads — conversation threads (for the switcher)
@active_thread — the selected thread (?sms_thread= or newest)
@conversation_messages — the active thread's messages, newest first
@reply_preset — sender/recipient preset for the reply box
Defined Under Namespace
Classes: SmsThread