Class: CustomFielder::Value
- Inherits:
-
ActiveRecord::Base
- Object
- ActiveRecord::Base
- CustomFielder::Value
- Includes:
- DeserializationHelper, TypeCheckingHelper
- Defined in:
- app/models/custom_fielder/value.rb
Constant Summary
Constants included from DeserializationHelper
DeserializationHelper::FALSE_VALUES
Constants included from TypeCheckingHelper
TypeCheckingHelper::FALSE_VALUES, TypeCheckingHelper::TRUTH_VALUES
Instance Method Summary collapse
-
#raw_value ⇒ Object
Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value.
-
#value ⇒ Object
Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value.
Methods included from DeserializationHelper
#array, #boolean, #date, #date_time, #deserialize, #fixnum, #float, #string
Methods included from TypeCheckingHelper
#is_array?, #is_boolean?, #is_correct_type?, #is_date?, #is_date_time?, #is_fixnum?, #is_float?, #is_string?
Instance Method Details
#raw_value ⇒ Object
Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value
26 |
# File 'app/models/custom_fielder/value.rb', line 26 def value; super; end |
#value ⇒ Object
Because everything is stored as string with ActiveRecord we use a alias method chain to rename the value method that uses the ActiveRecord String value to raw_value so when value is called it returns the deserialized value
25 |
# File 'app/models/custom_fielder/value.rb', line 25 def value; super; end |