Sha256: ada38a2aa57c5edbef4d4daab000bfb02a1e7c22e5832bc9fa039968f5075f41
Contents?: true
Size: 561 Bytes
Versions: 4
Compression:
Stored size: 561 Bytes
Contents
# frozen_string_literal: true module Clowne module Declarations class ExcludeAssociation < Base # :nodoc: all attr_accessor :name def initialize(name) @name = name.to_sym end def compile(plan) plan.remove_from(:association, name) end end end end Clowne::Declarations.add :exclude_association, Clowne::Declarations::ExcludeAssociation Clowne::Declarations.add :exclude_associations do |*names| names.each do |name| declarations.push Clowne::Declarations::ExcludeAssociation.new(name) end end
Version data entries
4 entries across 4 versions & 1 rubygems