Skip to content

Commit

Permalink
Add explanatory comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdtruck committed Aug 26, 2016
1 parent e5fface commit 24c9b84
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/mini_kickstarter_db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ def back_project(project_name, given_name, credit_card_number, backing_amount)
backing_amount)
end

# Explicit field mapping to hide positional details from method consumers.

def find_project_by_project_name(project_name)
row = @db.get_first_row('select * from projects where project_name = ?', project_name)
return {
Expand Down

0 comments on commit 24c9b84

Please sign in to comment.