Skip to main content

Timeline for LikesControler for a Post

Current License: CC BY-SA 3.0

15 events
when toggle format what by license comment
Aug 14, 2015 at 6:48 history edited tokland CC BY-SA 3.0
added 4 characters in body
Aug 6, 2015 at 15:50 comment added tokland Yes, it makes sure all the Like objects (usually, just one), have been destroyed. "destroy" may not suceed (it returns false) for example if a before_destroy callbacks stops it.
Aug 6, 2015 at 15:04 comment added Nivla Great, what means .all?(&:destroyed?), the current record already destroyed?
Aug 6, 2015 at 9:36 history edited tokland CC BY-SA 3.0
added 74 characters in body
Aug 6, 2015 at 9:34 comment added tokland @Nivla: I've refactored toggle_like to make sure it returns a meaningful boolean.
Aug 5, 2015 at 16:43 history edited tokland CC BY-SA 3.0
added 24 characters in body
Aug 5, 2015 at 16:38 history edited tokland CC BY-SA 3.0
added 24 characters in body
Aug 5, 2015 at 15:11 history edited tokland CC BY-SA 3.0
added 5 characters in body
Aug 5, 2015 at 15:11 comment added tokland You are spot-on on both notes, updated.
Aug 5, 2015 at 12:44 comment added Nivla Thanks, I really liked that I even did the refactoring. Two notes: 1. The method exist?, its named exists?. 2. It's throwed an error when I called the destroy method instead I had to use the destroy_all method. Thanks.
Aug 5, 2015 at 12:37 vote accept Nivla
Aug 5, 2015 at 8:18 history edited tokland CC BY-SA 3.0
added 59 characters in body
Aug 4, 2015 at 20:21 history edited tokland CC BY-SA 3.0
added 7 characters in body
Aug 4, 2015 at 20:12 history edited tokland CC BY-SA 3.0
added 31 characters in body
Aug 4, 2015 at 20:02 history answered tokland CC BY-SA 3.0