class Bullet::Registry::Association

Public Instance Methods

merge(base, associations) click to toggle source
# File lib/bullet/registry/association.rb, line 6
def merge(base, associations)
  @registry.merge!(base => associations)
end
similarly_associated(base, associations) click to toggle source
# File lib/bullet/registry/association.rb, line 10
def similarly_associated(base, associations)
  @registry.select { |key, value| key.include?(base) && value == associations }
           .collect(&:first).flatten
end