Changeset 46 in bookmarks for trunk/BookmarkApp.pm


Ignore:
Timestamp:
06/03/13 17:57:19 (11 years ago)
Author:
peter
Message:
  • moved the update method from Bookmark to Bookmarks
  • added a utility helper method _update_tags that is called by add and update in the Bookmarks class
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/BookmarkApp.pm

    r45 r46  
    401401        $bookmark->title($q->param('title')); 
    402402        $bookmark->tags([ split(' ', $q->param('tags')) ]); 
    403         $bookmark->update($self->_bookmarks->dbh); 
     403 
     404        # write to the database 
     405        $self->_bookmarks->update($bookmark); 
    404406 
    405407        # return to the form 
Note: See TracChangeset for help on using the changeset viewer.