
Rails gem to manage tags with PostgreSQL array columns.
Metka is an innovative gem designed to simplify tag management by leveraging PostgreSQL array columns. Built for Ruby on Rails applications, it seamlessly integrates with your existing setup, enabling efficient tag management without the overhead of complex configurations. Whether you're dealing with large datasets or streamlined tagging, Metka offers robust features to enhance your tagging capabilities and improve data organization.
This gem is perfect for developers looking to implement custom tagging strategies tailored to their unique requirements. With support for custom delimiters, flexible parsing options, and efficient data aggregation, Metka turns the challenge of managing tags into a straightforward task.
Custom Delimiter: By default, tags are separated by commas, but you can easily set your own custom separator to fit your needs.
Custom Parser: Implement your own parsing logic by creating a singleton class with a .call method, allowing for enhanced flexibility in tag handling.
ActiveRecord Strategy: The default method to calculate tag statistics, allowing easy access to tagging information via model class methods without requiring additional setup.
View Strategy: Aggregate tagging data in an SQL View, which can help in storing tag aggregations in a distinct model without significant performance drawbacks.
Flexible Query Methods: Utilize various querying methods such as .with_all_, .with_any_, .without_all_, and .without_any_ to find tagged objects according to specific criteria.
Migration Generation: Automatically generate migrations to create views or set up tagged columns as required, streamlining the database setup process.
Comprehensive Tag Statistics: Easily access tag aggregation data from multiple tagged columns, providing a holistic view of tag occurrences across different datasets.
