Acts As Flaggable updated 4

Posted by Jeff Wed, 06 Dec 2006 21:34:00 GMT

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

Leave a response

  1. TheBlatherskite Wed, 19 Sep 2007 18:03:24 GMT
    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!
  2. casino tests Wed, 28 Nov 2007 04:26:11 GMT
    Wir haben Casino Tests für Sie auf unserem Online Casino Portal punenet.com.
  3. casinoreviews Sun, 30 Dec 2007 01:19:22 GMT
    Lesen Sie unsere Casinoreviews und entscheiden Sie sich für Ihr persönliches Online Casino. Roter Teppich inklusive.
  4. casino online Thu, 31 Jan 2008 08:12:14 GMT
    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.
Comments