Sha256: b65d370c584635c549ef8a02afe67987ae34083aabec24e3c55afd9f9c66cf1c
Contents?: true
Size: 453 Bytes
Versions: 6
Compression:
Stored size: 453 Bytes
Contents
module Fooltip module ActiveRecord def has_fooltips attr_accessible :fooltip_associations_attributes has_many :fooltip_associations, as: :owner, class_name: "Fooltip::Association", dependent: :destroy has_many :fooltips, through: :fooltip_associations, source: :container, class_name: "Fooltip::Container" accepts_nested_attributes_for :fooltip_associations, reject_if: :all_blank, allow_destroy: true end end end
Version data entries
6 entries across 6 versions & 1 rubygems