Acts as taggable on ( tag ownership question )

From the acts as taggable doc I seeTag Ownership

Tags can have owners:

class User < ActiveRecord::Base
  acts_as_tagger
end

class Photo < ActiveRecord::Base
  acts_as_taggable_on :locations
end

@some_user.tag(@some_photo, :with => "paris, normandy", :on => 

:locations)
@some_user.owned_taggings
@some_user.owned_tags
@some_photo.locations_from(@some_user)

but I would like to be able to do something like

@some_photo.tagged_with(“xxx, yyy”, :from => @some_user)

but I can’t quite see how to do it from the current API.

Regards

Brad

Created a github branch to solve this problem

https://github.com/bradphelan/acts-as-taggable-on/tree/wip/tagged_with_owned_by

Will send a pull request for this feature.


Brad P.
http://xtargets.com

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs