Acts As Flaggable updated 4
Just checked in a small update to Acts As Flaggable that includes the following
- Incorporates suggestion from bitbutter to allow add_flag to take either a Flag object (as before) or a Hash. If passed a Hash it creates a Flag object from the hash you passed in.
- Added user_has_flagged? instance method to tell you if a user has flagged an object at all or flagged it with a specific flag
Grab it from trunk in the normal way!
Trackbacks
Use the following link to trackback from your own site:
http://www.baconbear.com/articles/trackback/10
Comments
-
I ran into an "expected Flag.rb to define Flag" error in my installation, which was fixed by changing a typo: Line #9 in Flag.rb, "validates_prescence_of :flag", should be changed to "validates_presence_of :flag" ("presence" needs to be spelled correctly). Other than that, a useful plugin. Thanks for wrapping up the flagging logic for us!
-
Wir haben Casino Tests für Sie auf unserem Online Casino Portal punenet.com.
-
Lesen Sie unsere Casinoreviews und entscheiden Sie sich für Ihr persönliches Online Casino. Roter Teppich inklusive.
-
Gioca ai giochi del casino online in un ambiente virtuale sano e sicuro, sapendo di avere accesso a tutti i manuali ed ai libri di strategia, così come alle offerte di Bonus gratuiti e ad altri vantaggi offerti dai casinò online.
