acts-as-taggable-on

https://github.com/mbleigh/acts-as-taggable-on

Ruby

A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.

ActsAsTaggableOn::Taggable#taggable_on

Make a model taggable on specified contexts
and optionally preserves the order in which tags are created

Separate methods used above for backwards compatibility
so that the original acts_as_taggable_on method is unaffected
as it's not possible to add another argument to the method
without the tag_types being enclosed in square brackets

NB: method overridden in core module in order to create tag type
    associations and methods after this logic has executed

Source | Google | Stack overflow

Edit

git clone [email protected]:mbleigh/acts-as-taggable-on.git

cd acts-as-taggable-on

open lib/acts-as-taggable-on/taggable.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-ActsAsTaggableOn--Taggable-taggable_on-for-pr


# Commit to git

git add lib/acts-as-taggable-on/taggable.rbgit commit -m "better docs for ActsAsTaggableOn::Taggable#taggable_on"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-ActsAsTaggableOn--Taggable-taggable_on-for-pr

hub pull-request


# Celebrate!