acts-as-taggable-array-on icon indicating copy to clipboard operation
acts-as-taggable-array-on copied to clipboard

A simple and high performance tagging gem for Rails using PostgreSQL array.

Results 8 acts-as-taggable-array-on issues
Sort by recently updated
recently updated
newest added

### Proposal This PR proposes to have a easy way to add simple validations for tags allowed to model using this gem ### Changes - Adds an allowed option as...

add deleted_at column, and add `acts_as_paranoid` to modal ```ruby class User < ApplicationRecord acts_as_taggable_array_on :tags acts_as_paranoid end ``` When run `User.tags_cloud`, It will raise sql error

As a quick exercise, I have added the ability to search the array values with a regular expression. The following scope was added to taggable.rb ```ruby scope :"with_#{tag_name}_like", ->(pattern) {...

Running: PostgreSQL 11 ``` Gemfile.lock acts-as-taggable-array-on (0.6.0) activerecord (>= 4) activesupport (>= 4) ``` ``` class Photo < ApplicationRecord taggable_array :tags end ``` `> Photo.last.tags => ["coffee", "sun"]` `> Photo.with_any_tags("coffee")...

when use acts_as_paranoid ``` irb(main):001:0> Topic.all_tags (2.8ms) SELECT tag FROM (SELECT DISTINCT unnest(topics.tags) as tag FROM "topics") subquery WHERE "topics"."deleted_at" IS NULL Traceback (most recent call last): 1: from (irb):1...

## Issue This is the first time we've started using this gem. One of the very first things we tried to do was define tags in a Rails controller (a...

enhancement

- [ ] transfer to https://github.com/acts-as-taggable-array-on - [ ] rewrite 'tmiyamon' to organization in the files of this repository

This PR adds additional functionality allowing the following class methods the ability to handle scoped relations calling the class method, it handles the specific exception for the "tag like" prepend,...