-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Improve base.rb & update active_hash #254
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Regarding this test error : https://github.com/Mapotempo/optimizer-api/pull/254/checks?check_run_id=3021525858#step:5:1659
It seems like the getter for end_point_id may not work as expected
It turns out this is due to a weird behaviour in active_hash. It is possible to create two Point objects as This means if the user defines two points -- one with integer, the other with string -- there is no warning (which is cool) but then |
cbbe508
to
3b55495
Compare
|
cdbcc3b
to
921388c
Compare
323592f
to
d49f2ca
Compare
8c8a2ec
to
783cd9a
Compare
Remove dead code Fix y_ids= operators Find raises if id does not exists Add getter for has_many ids Fix id getter of belongs_to Functions keep the id(s) up-to-date Generate only necessary id functions Generate only correct ids functions
For
has_many
andbelongs_to
Closes
optimizer-api/-/issues/446