Skip to content
This repository was archived by the owner on Apr 25, 2019. It is now read-only.

Fix active record, because AR returns false for method_defined?(field)#33

Open
h0jeZvgoxFepBQ2C wants to merge 1 commit intoMyceliumGear:masterfrom
h0jeZvgoxFepBQ2C:fix_active_record_attr_overwrite
Open

Fix active record, because AR returns false for method_defined?(field)#33
h0jeZvgoxFepBQ2C wants to merge 1 commit intoMyceliumGear:masterfrom
h0jeZvgoxFepBQ2C:fix_active_record_attr_overwrite

Conversation

@h0jeZvgoxFepBQ2C
Copy link

Wanted to include the OrderModule into my AR class, but found out that the fields address, status,... have not been saved after calling the corresponding methods.

After investigation I found out that ActiveRecord returns false for the method_defined?(field) calls, so I added another call to the corresponding AR method.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant