Module: ArrayAssociation

Extended by:
ActiveSupport::Concern
Defined in:
lib/array_association.rb,
lib/array_association/utils.rb,
lib/array_association/version.rb

Overview

Usage:

include ArrayAssociation
array_column :order_ids, :orders, { class: Order }

in this case some methods will be defined:

orders, which returns collection of Order
order_ids=, which sets normalized order_ids
orders=(values), which maps collection and sets order_ids

Defined Under Namespace

Modules: ClassMethods, Utils

Constant Summary collapse

VERSION =
'0.1.0'