Sha256: 08a1c0c28485dea04ea4388c0707d5bfa8afc8b6b62c87d117e6f9696e2d725c
Contents?: true
Size: 412 Bytes
Versions: 3
Compression:
Stored size: 412 Bytes
Contents
# frozen_string_literal: true module Rubocop module Cop # Cop that prevents the use of `serialize` in ActiveRecord models. class ActiveRecordSerialize < RuboCop::Cop::Base MSG = 'Do not store serialized data in the database, use separate columns and/or tables instead' def on_send(node) add_offense(node.loc.selector) if node.children[1] == :serialize end end end end
Version data entries
3 entries across 3 versions & 1 rubygems