make_flaggable
make_flaggable copied to clipboard
flag type
Hi all,
Great work, thanks!
It would be nice to have flag types, like lets say "bookmark", "favourite", "keep" and then you might be able to do:
user.bookmark! and not User.flag!(bookmark)
Have you thought about this?
+1
I don't actually get it. There is a type column in table and i can see that line in readme:
# Returns true if the flagger flagged the flaggable, false otherwise.
user.flagged?(article, :flag_name)
But it's not working and, as i can see in the code, is not implemented. Can anyone clear this out?
Edit: sorry, this column name is actualy flaggable_type and it's not what i thought. But, still, the mentioned line from readme is a bit unclear.
I think i should come up with PR for that this week