module Leafy::Mixin::ActiveRecord::Shared::InstanceMethods
Private Instance Methods
activerecord_json_column?()
click to toggle source
# File lib/leafy/mixin/active_record/shared.rb, line 13 def activerecord_json_column? return false unless self.is_a?(::ActiveRecord::Base) return false unless column = self.class.columns_hash[self.class.leafy_data_attribute.to_s] [:json, :jsonb].include?(column.type) end