Changeset 75 in bookmarks for trunk/lib/Bookmarks/Controller.pm


Ignore:
Timestamp:
04/11/14 11:03:53 (10 years ago)
Author:
peter
Message:
  • added a collection attribute to the Bookmark class
  • added an update() method to the Bookmark class that calls the collection->update() method, if the collection is set
  • Bookmarks::Controller::update_and_redirect() calls Bookmark::update()
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Bookmarks/Controller.pm

    r74 r75  
    203203 
    204204        # write to the database 
    205         $self->bookmarks->update($bookmark); 
     205        $bookmark->update; 
    206206 
    207207        #TODO: not RESTful; proper response would be a 200 
Note: See TracChangeset for help on using the changeset viewer.