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
{{ message }}
Repository navigation
Adjust documentation to explain dirty tracking #57
In my setup (fmrest v0.27.0) dirty did not work as described in the README.
When I define a model as (cited from README, layout and connection is missing in this part of the README):
classHoneybee < FmRest::Layoutend
then
bee=Honeybee.newbee.name="Hutch"bee.save# POST request (creates new BUT EMPTY record)bee.name="ハッチ"bee.save# PATCH request (WITHOUT ANY DATA)
To make the example work, I have to declare all Filemaker fields as attributes:
The README seems to imply that fields are declared as attributes automatically, which is not the case.
Only the call to attributes registers the fields to ActiveModel::Dirty and monitors changed attributes.
This can be tideous with layouts with many fields.
Activity
pilaf commentedon Aug 7, 2026
@mameier Thanks for taking the time to report this, and good catch. I'll update the README.
Unfortunately there are no plans to support dirty attributes without declaring them with
attributesfirst.pilaf commentedon Aug 7, 2026
Updated README in #58