make_flaggable icon indicating copy to clipboard operation
make_flaggable copied to clipboard

flag type

Open Maxoos opened this issue 12 years ago • 1 comments

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?

Maxoos avatar Aug 26 '13 07:08 Maxoos

+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

mbajur avatar Nov 03 '13 12:11 mbajur