This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
############################################################################################### | |
# WHAT I SERIALIZE? # | |
############################################################################################### | |
# This scrip can help you to find what object types you need to witelist after CVE-2022-32224 update | |
# AD: If you using StimulusJS then checkout my gem stimulus_tag_helper | |
# https://rubygems.org/gems/stimulus_tag_helper | |
# https://github.com/crawler/stimulus_tag_helper |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# frozen_string_literal: true | |
module ActiveRecord | |
module EnumHelpers | |
extend ActiveSupport::Concern | |
module ClassMethods | |
def enum_helpers(name) | |
module_eval <<-RUBY, __FILE__, __LINE__ + 1 | |
# e.g. order.state_exactly? 'payment' |