Skip to content

Instantly share code, notes, and snippets.

@stueccles
Last active October 15, 2015 19:17
Show Gist options
  • Select an option

  • Save stueccles/f13624bfd8f2c450f157 to your computer and use it in GitHub Desktop.

Select an option

Save stueccles/f13624bfd8f2c450f157 to your computer and use it in GitHub Desktop.

Revisions

  1. stueccles revised this gist Oct 15, 2015. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions in.ex
    Original file line number Diff line number Diff line change
    @@ -1,5 +1,5 @@
    def line_item_query(order, variant_id) do
    from l in assoc(order, :line_items),
    where: l.variant_id == ^variant_id,
    select: l
    end
    def line_item_query(order, variant_id) do
    from l in assoc(order, :line_items),
    where: l.variant_id == ^variant_id,
    select: l
    end
  2. stueccles created this gist Oct 15, 2015.
    5 changes: 5 additions & 0 deletions in.ex
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,5 @@
    def line_item_query(order, variant_id) do
    from l in assoc(order, :line_items),
    where: l.variant_id == ^variant_id,
    select: l
    end