Class: OneQueryAssociation

Inherits:
Association show all
Includes:
OneAssociation, QueryAssociation
Defined in:
lib/yodel/models/core/associations/query/one_query_association.rb

Constant Summary

Constants inherited from Field

Field::TYPES

Instance Attribute Summary

Attributes inherited from Field

#name, #options

Instance Method Summary collapse

Methods included from OneAssociation

#before_destroy, #search_terms_set, #typecast

Methods included from QueryAssociation

#associate, #default, #initialize, #strip_nil?, #unassociate, #validate

Methods inherited from Association

#from_json, #json_action

Methods inherited from Field

#default_input_type, #display?, field_from_type, #from_json, from_options, #include_in_search_keywords?, #index?, #inherited?, #initialize, #method_missing, #numeric?, #required?, #searchable?, #strip_nil?, #to_json, #to_str, #typecast, #unique?, #validate

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Field

Instance Method Details

#untypecast(value, record) ⇒ Object



5
6
7
# File 'lib/yodel/models/core/associations/query/one_query_association.rb', line 5

def untypecast(value, record)
  nil
end