Skip to content

Commit

Permalink
Cam 4755 json preferences 1.0.3 (#2)
Browse files Browse the repository at this point in the history
* Update readme

* Fix bug

* Bump the gem version to 1.0.3

---------

Co-authored-by: hughvo <hugh@punchh.com>
  • Loading branch information
hvogo and hughvo authored Feb 5, 2024
1 parent 3a73db6 commit 71b7d3a
Show file tree
Hide file tree
Showing 9 changed files with 10 additions and 9 deletions.
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# JsonPreference

This project is a folk of [serial_preference](https://github.com/punchh/serial_preference) and uses JSON type to store preferences for better performance.

If you have a large number of settings/preferences on your model
(like a company or a businesss) and you store each preference in
a separate model or in separate columns on the model itself, it
Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_4.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_4.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.2.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_5.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_6.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 3.0.0)
activesupport (>= 3.0.0)

Expand Down
2 changes: 1 addition & 1 deletion gemfiles/rails_7.gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: ..
specs:
json-preference (1.0.2)
json-preference (1.0.3)
activerecord (>= 6.0.0)
activesupport (>= 6.0.0)

Expand Down
3 changes: 1 addition & 2 deletions lib/json-preference/serializer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ def self.dump(hash)

def self.load(hash)
return if hash.nil?
# hash.try(:with_indifferent_access)
hash.try(:deep_symbolize_keys)
hash.try(:with_indifferent_access)
end
end
end
2 changes: 1 addition & 1 deletion lib/json-preference/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module JsonPreference
VERSION = "1.0.2"
VERSION = "1.0.3"
end

0 comments on commit 71b7d3a

Please sign in to comment.