Module: Ext::Integrations::Show
- Included in:
- Show
- Defined in:
- app/models/ext/integrations.rb
Instance Method Summary collapse
-
#chart_for(channel, organization_id = nil) ⇒ Object
Used for rendering widget and api charts.
- #record_publish ⇒ Object
Instance Method Details
#chart_for(channel, organization_id = nil) ⇒ Object
Used for rendering widget and api charts. Storefront uses section.ticket_types_for instead
31 32 33 34 35 36 37 38 39 |
# File 'app/models/ext/integrations.rb', line 31 def chart_for(channel, organization_id = nil) chart = Chart.joins(:show) .joins(:sections => :ticket_types) .includes(:sections => :ticket_types) .where('shows.id = ?', self.id) .where("ticket_types.#{channel} = ?", true) chart.first end |
#record_publish ⇒ Object
25 26 |
# File 'app/models/ext/integrations.rb', line 25 def record_publish end |