mongoid-tags-arent-hard icon indicating copy to clipboard operation
mongoid-tags-arent-hard copied to clipboard

A tagging gem for Mongoid 3 that doesn't actually suck.

Results 6 mongoid-tags-arent-hard issues
Sort by recently updated
recently updated
newest added

Full trace: ``` terminal Type Mongoid::TagsArentHard::Tags for field :tags in MyModel not supported rails_admin (0.5.0) lib/rails_admin/adapters/mongoid.rb:310:in `type_lookup' rails_admin (0.5.0) lib/rails_admin/adapters/mongoid.rb:92:in `block in properties' rails_admin (0.5.0) lib/rails_admin/adapters/mongoid.rb:85:in `each' rails_admin (0.5.0) lib/rails_admin/adapters/mongoid.rb:85:in...

This method simply removes a tag from all selected records: ``` ruby Foo.delete_tags('tag name') Foo.delete_colors('tag name') Foo.where(name: 'some name').delete_tags('tag name') ```

This method should simply rename a tag: `Foo.rename_tags('old tag name', 'new tag name')` And it should work with scoped queries too: ``` ruby Foo.where(name: 'test').rename_tags('old tag name', 'new tag name')...

This is the beginning of a Mongoid 4 compatible version of this gem. I've set up Travis-CI to run the test suite against multiple Mongoid versions and Rubies, defaulting to...

This should return an array of arrays of the form: `[ ['tag_name_1',12], ['tag name 2', 1], [...] ]` It should work within scoped queries ``` Ruby Foo.all_tags_counts Foo.where(name: 'test').all_tags_counts Foo.all_colors_counts...