Rails gem to manage tags with PostgreSQL array columns.
Fixed spec for Rails master Updated Gemfile
class AddIndices < ActiveRecord::Migration[5.0]
def change
add_index :users, :tags, using: 'gin'
end
end
Added support for Rails 6.1. Dropped support for Rails 5.0 and 5.1.
Bumps rack from 2.0.8 to 2.2.3
.tagged_with
scope.class Record < ApplicationRecord
include Metka::Model(columns: %w[tag1 tag2])
...
end
...
Record.tagged_with('some, tags')
# same as above
Record.tagged_with('some, tags', on: %w[tag1 tag2], exclude: false, any: false, join_operator: Metka::Or)
Metka::Model
inclusion is allowed, so instead of: include Metka::Model(column: 'tags1')
include Metka::Model(column: 'tags2')
use:
include Metka::Model(columns: %w[tags1 tags2])
is fine:
include Metka::Model(column: 'tags')
include Metka::Model(columns: %w[tags1 tags2], parser: My::AwesomeParser.instance)
Bumps nokogiri from 1.10.7 to 1.10.8.
Release notes Changelog Commits
Bumps rack from 2.0.7 to 2.0.8.