app/models/locomotive/content_type.rb
# Find a custom field describing an entry based on its id
# in first or its name if not found.
#
# @param [ String ] id_or_name The id of name of the field
#
# @return [ Object ] The custom field or nit if not found
#
Find a custom field describing an entry based on its id
in first or its name if not found.
Find a custom field describing an entry based on its id in first or its name if not found .
def find_entries_custom_field(id_or_name)
      return nil if id_or_name.nil? 
      _field = self.entries_custom_fields.find(id_or_name) rescue nil
      _field || self.entries_custom_fields.where(name: id_or_name).first
    end
def find_entries_custom_field ( id_or_name ) return nil if id_or_name . nil? _field = self . entries_custom_fields . find ( id_or_name ) rescue nil _field || self . entries_custom_fields . where ( name : id_or_name ) . first end
Find a custom field describing an entry based on its id
in first or its name if not found.
Find a custom field describing an entry based on its id in first or its name if not found .
# bypass the memoization
The custom field or nit if not found
The custom field or nit if not found
 Object 
id_or_name
<not_specific>
<not_specific>
id_or_name The id of name of the field
id_or_name The id of name of the field