Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Getters are being triggered at object initialization. #57
Hi, I've seem to have run into a problem.
def name if super.blank? self.name = fetch_name_from_some_api self.save end return super end
Is this the intended behaviour.
This is the intended behavior. The reason is that NoBrainer performs dirty tracking, so it calls the getter to remember the
Perhaps it's better to use an
Also, it's a bad idea to call save in here, it may lead to some weird behavior in your app that you don't expect.