Skip to content

Commit

Permalink
Simplifies ExQL.select
Browse files Browse the repository at this point in the history
  • Loading branch information
yrashk committed Jul 7, 2012
1 parent 64ee5a6 commit f2c9856
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions lib/exql.ex
@@ -1,9 +1,5 @@
defmodule ExQL do

def select(options // []) when is_list(options) do
def select(options // []) do
ExQL.Select.new(options)
end
def select(fields, options // []) do
ExQL.Select.new(Keyword.put options, :fields, fields)
end
end
end

0 comments on commit f2c9856

Please sign in to comment.