Module: ActiveRecord::Has::CustomFields
- Defined in:
- lib/has_custom_fields.rb
Overview
HasCustomFields allow for the Entity-attribute-value model (EAV), also known as object-attribute-value model and open schema on any of your ActiveRecord models.
Defined Under Namespace
Modules: ClassMethods, InstanceMethods
Constant Summary collapse
- ALLOWABLE_TYPES =
['select', 'checkbox', 'text', 'date']
Class Method Summary collapse
-
.included(base) ⇒ Object
:nodoc:.
Class Method Details
.included(base) ⇒ Object
:nodoc:
48 49 50 |
# File 'lib/has_custom_fields.rb', line 48 def self.included(base) # :nodoc: base.extend ClassMethods end |