bradphelan/rocket_tag — pull request #27 by jacki3lene (2012-07-19 10:31:31+00:00)
Title: Fixed a bug on taggings_for_context

Hi,

I just downloaded your gem and found out there's a bug on taggable model save. It throws:

`
ActiveRecord::StatementInvalid: Mysql2::Error:
Unknown column 'taggings.skills' in 'where clause':
DELETE FROM 'taggings' WHERE 'taggings'.'taggable_id' = 192 AND 'taggings'.'taggable_type' = 'User' AND 'taggings'.'context' = 'taggings'.'skills'
`

I fixed it by using a different var name `context_val` instead of `context` which references the `context` column in `taggings_for_context` method.

Btw, your gem is very good and simple to use. :)