Module: CustomFields::Types::Text::Target::ClassMethods
- Defined in:
- lib/custom_fields/types/text.rb
Instance Method Summary collapse
-
#apply_text_custom_field(klass, rule) ⇒ Object
Adds a text field (simply a string field).
-
#text_attribute_get(instance, name) ⇒ Hash
Build a hash storing the raw value for a string custom field of an instance.
-
#text_attribute_set(instance, name, attributes) ⇒ Object
Set the value for the instance and the text field specified by the 2 params.
Instance Method Details
#apply_text_custom_field(klass, rule) ⇒ Object
Adds a text field (simply a string field)
23 24 25 |
# File 'lib/custom_fields/types/text.rb', line 23 def apply_text_custom_field(klass, rule) apply_custom_field(klass, rule) end |
#text_attribute_get(instance, name) ⇒ Hash
Build a hash storing the raw value for a string custom field of an instance.
35 36 37 |
# File 'lib/custom_fields/types/text.rb', line 35 def text_attribute_get(instance, name) default_attribute_get(instance, name) end |
#text_attribute_set(instance, name, attributes) ⇒ Object
Set the value for the instance and the text field specified by the 2 params.
46 47 48 |
# File 'lib/custom_fields/types/text.rb', line 46 def text_attribute_set(instance, name, attributes) default_attribute_set(instance, name, attributes) end |