You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The last doc example for Entity#exclude_from_indexes! shows the method passing the property value(s) as a parameter to the block argument, but I do not see this in the code:
The example:
entity["age"]=21entity.exclude_from_indexes!"age"do |age|
age > 18end
The text was updated successfully, but these errors were encountered:
That method simply stores the block as a Proc object to be used for that field name. The value is passed to the Proc object here and here, but this happens after all the field values are stored and right before saving.
The last doc example for
Entity#exclude_from_indexes!
shows the method passing the property value(s) as a parameter to the block argument, but I do not see this in the code:The example:
The text was updated successfully, but these errors were encountered: