Skip to content

Commit

Permalink
updated filter method to one line
Browse files Browse the repository at this point in the history
  • Loading branch information
mackenziehicks committed Nov 7, 2016
1 parent 9434816 commit fcaa7e0
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions web/controllers/donation_goal_controller.ex
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,7 @@ defmodule CodeCorps.DonationGoalController do
plug :load_and_authorize_resource, model: DonationGoal, only: [:update, :delete]
plug JaResource

def filter(_conn, query, "id", id_list) do
query |> id_filter(id_list)
end
def filter(_conn, query, "id", id_list), do: id_filter(query, id_list)

def handle_create(_conn, attributes) do
%DonationGoal{}
Expand Down

0 comments on commit fcaa7e0

Please sign in to comment.