Sha256: c52000372cd386d4737fd1a852310ae945ca4d493d0de6e8e7cb367fb81d3cb4
Contents?: true
Size: 360 Bytes
Versions: 5
Compression:
Stored size: 360 Bytes
Contents
module Klastera::Concerns::Clusterizable extend ActiveSupport::Concern included do attr_accessor :lonely_cluster belongs_to :cluster validates :cluster_id, presence: true, if: proc { self.organization.required_suborganization_mode? } end module ClassMethods def cluster_params [ :cluster_id, :lonely_cluster ] end end end
Version data entries
5 entries across 5 versions & 1 rubygems