module ActiveModel::Datastore::ExcludedIndexes
Public Instance Methods
exclude_from_index(entity, boolean)
click to toggle source
Sets all entity properties to be included/excluded from the Datastore
indexes.
# File lib/active_model/datastore/excluded_indexes.rb, line 12 def exclude_from_index(entity, boolean) entity.properties.to_h.each_key do |value| entity.exclude_from_indexes! value, boolean end end
no_index_attributes()
click to toggle source
# File lib/active_model/datastore/excluded_indexes.rb, line 5 def no_index_attributes [] end