Sha256: 4e41b28809579ff49c73597005da1a5b0de76992b8a24250cfda00809947454d
Contents?: true
Size: 718 Bytes
Versions: 122
Compression:
Stored size: 718 Bytes
Contents
module Spree::RansackableAttributes extend ActiveSupport::Concern included do class_attribute :whitelisted_ransackable_associations class_attribute :whitelisted_ransackable_attributes class_attribute :whitelisted_ransackable_scopes class_attribute :default_ransackable_attributes self.default_ransackable_attributes = %w[id name updated_at created_at] def self.ransackable_associations(*_args) whitelisted_ransackable_associations || [] end def self.ransackable_attributes(*_args) default_ransackable_attributes | (whitelisted_ransackable_attributes || []) end def self.ransackable_scopes(*_args) whitelisted_ransackable_scopes || [] end end end
Version data entries
122 entries across 122 versions & 1 rubygems