Sha256: 184299fcc7b836c964785fc48df413e13dce882290ba5adc07117b2a2957c261
Contents?: true
Size: 716 Bytes
Versions: 10
Compression:
Stored size: 716 Bytes
Contents
module ActsAsIcontact module Rails module ClassMethods module Lists # The lists that each new contact will be subscribed to upon creation. Set by the :list and :lists # options to acts_as_icontact. def icontact_default_lists @icontact_default_lists end protected # Builds an array of any lists in the :list or :lists parameter. def set_default_lists(list, lists) # Combines :list and :lists parameters into one array @icontact_default_lists = [] @icontact_default_lists << list if list @icontact_default_lists += lists if lists end end end end end
Version data entries
10 entries across 10 versions & 2 rubygems