Class: LucidWorks::Fieldtype
Constant Summary collapse
- ANALYZER_TYPES =
%w{ default index query }
Constants included from Utils::BoolConverter
Utils::BoolConverter::FALSE_VALUES, Utils::BoolConverter::TRUE_VALUES
Instance Attribute Summary
Attributes inherited from Base
#attributes, #id, #parent, #persisted, #raw_response, #response_data
Instance Method Summary collapse
-
#update_attributes(attrs) ⇒ Object
Provide support for adding more attributes during update.
Methods inherited from Base
all, #collection_url, collection_url, create, #destroy, extract_parent_from_options, find, first, human_attribute_value, #human_attribute_value, #initialize, #inspect, last, member_url, #member_url, #persisted?, #read_attribute_for_validation, #save, schema, singleton_name, to_select
Methods included from SimpleNaming
Methods included from Utils::BoolConverter
Constructor Details
This class inherits a constructor from LucidWorks::Base
Instance Method Details
#update_attributes(attrs) ⇒ Object
Provide support for adding more attributes during update.
18 19 20 21 22 23 24 25 26 |
# File 'lib/lucid_works/fieldtype.rb', line 18 def update_attributes(attrs) attrs.keys.each do |attr| unless self.class.schema.has_attribute?(attr) self.class.schema.add_attribute(attr, :string) unless self.class.schema.has_attribute?(attr) end end super end |