No release in over a year
When we save data, Active Record provides us a method serialize, which helps us to save object params in JSON or YAML format. If we do not work with raw data, it is OK, but if we try to query raw data (for analytics purposes, for example) it becomes a headache. For JSON format it is not so critical, because databases provide functionality for work with JSON data, but for YAML there is no such functionality, which causes troubles for raw data querying.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

CI

On RubyGems

Description

Model attributes serialize to hash checker.

Installation

Add this line to your application's Gemfile:

gem 'rubocop-serializer', require: false

Then include cop in your .rubocop.yml like this:

require:
  - rubocop-serializer

License

The gem is available as open source under the terms of the MIT License.