hstore_accessor icon indicating copy to clipboard operation
hstore_accessor copied to clipboard

Adds typed hstore-backed field support to ActiveRecord models.

Results 13 hstore_accessor issues
Sort by recently updated
recently updated
newest added

New dirty tracking for Rails 5.1 + 5.2 in after callbacks. Gets at least one aspect of issue #76

This change adds support for ActiveRecord 5.2 and 6.0. ## Enhancements - Tested on Ruby 2.6 - Appraisals for ActiveRecord 5.2 - Appraisals for ActiveRecord 6.0 ## Fixes - Deprecation...

In relation to: https://github.com/devmynd/hstore_accessor/issues/18 Let's say I have a `Car` model with an hstore field called `caracteristics` that contains an integer called `maximum_speed` like this : ```ruby class Car <...

Is there a plan to update the dirty tracking to rails 5.1 style? Ex. saved_change_to_{attribute}? will_save_change_to_{attribute}?

enhancement

If I try to define an individual hstore field as a primary key in a `has_many` association the generated SQL is just searching for `NULL` (Postgres). Is it possible to...

Say I have a `User` model with an hstore field called `settings` that contains a boolean called `notifications_enabled`. That allows me to do [34] pry(main)> User.last.notifications_enabled => true But if...

How do I define the label in yml file? I tried so. .... model_name: attribute: 'name' also .... model_name: hstore_field/attribute: 'name' But I could not, is there any way?

**TLDR;** A little more metadata please to ease the migration to HStorified data. When writing generalised code (i.e. a model concern) it's sometimes necessary to apply some kind of check...

In case someone comes looking for it, here is the equivalent of getting the list of attributes (keys) for a given hstore. It's briefly mentioned in the [README](https://github.com/devmynd/hstore_accessor#activerecord-methods-generated-for-fields) (bottom paragraph),...

documentation improvement