Skip to content

Commit

Permalink
Tweak comment.
Browse files Browse the repository at this point in the history
  • Loading branch information
thirdtruck committed Aug 26, 2016
1 parent 31aa246 commit e5fface
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_kickstarter_db.rb
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ def initialize(filename)
end
end

# If this project grew any more complicated, I'd replace all of these custom queries with ActiveRecord.
def create_project(project_name, target_dollar_amount)
@db.execute('insert into projects values(?, ?, ?);', nil, project_name, target_dollar_amount)
end

# If this project grows any more complicated, I'd replace all of these custom searches with ActiveRecord.
def find_project_id_by_project_name(project_name)
@db.get_first_value('select id from projects where project_name = ?', project_name)
end
Expand Down

0 comments on commit e5fface

Please sign in to comment.