Module: Foobara::ModelAttributeHelpers::Concerns::AttributeHelpers

Includes:
Concern
Defined in:
foobara-0.0.110/projects/model_attribute_helpers/src/attribute_helpers.rb

Overview

TODO: This concern is retroactively designed to be mixed into any entity-like class that can hold an entity-like foobara type. Because we want a subclass of ActiveRecord::Base to be such a target in the case of the foobara-active-record-type class, but because we can’t make ActiveRecord::Base a subclass of Entity or DetachedEntity, and also because it makes sense to extend such behavior to foobara model classes, we will implement this as a Concern/mixin with a published expected interface and prefixed methods. This also means it should live in its own project, not here in the entity project. required methods:

foobara_type foobara_attributes_type foobara_primary_key_attribute (nil if not an entity type) foobara_primary_key_type (nil if not an entity type) foobara_associations

Defined Under Namespace

Modules: ClassMethods

Method Summary

Methods included from Concern

foobara_class_methods_module_for, foobara_concern?, included