Skip to content

Instantly share code, notes, and snippets.

@Heavyblade
Created August 17, 2021 22:33
Show Gist options
  • Save Heavyblade/44bf5e1b9f941920cd1668f1ae8c6d65 to your computer and use it in GitHub Desktop.
Save Heavyblade/44bf5e1b9f941920cd1668f1ae8c6d65 to your computer and use it in GitHub Desktop.
actions = Act.where(brand_id: brand_id)
.joins(:campaign)
.includes(:act_requirements, campaign: :channel)
.without_deleted
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment