Skip to content

Commit

Permalink
Use Client#create for Board
Browse files Browse the repository at this point in the history
  • Loading branch information
rossta committed Jan 20, 2013
1 parent 8c1afc7 commit 4c5a8c4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/trello/board.rb
Expand Up @@ -15,9 +15,10 @@ def find(id)
end

def create(fields)
new('name' => fields[:name],
'desc' => fields[:description],
'closed' => fields[:closed] || false).save
client.create(:board,
'name' => fields[:name],
'desc' => fields[:description],
'closed' => fields[:closed] || false)
end

def all
Expand Down

0 comments on commit 4c5a8c4

Please sign in to comment.