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
I'm looking for a solution to be able to write a column named 'ID' (which isn't the primary key) in an external database.
I noticed in the README it says
Instance methods in ActiveRecord::Base, except for 'id', are combined into a list
Is there any reason why id is excluded? Is id= excluded too?
So far my best (only) solution is to monkey patch ActiveRecord::AttributeMethods::Write.write_attribute(attr_name, value) and then access it using square brackets:
I'm looking for a solution to be able to write a column named 'ID' (which isn't the primary key) in an external database.
I noticed in the README it says
Is there any reason why
id
is excluded? Isid=
excluded too?So far my best (only) solution is to monkey patch
ActiveRecord::AttributeMethods::Write.write_attribute(attr_name, value)
and then access it using square brackets:The text was updated successfully, but these errors were encountered: