Having issues with my Docker build using an incorrect version of Bundler. Rather than using this solution ( https://discuss.circleci.com/t/using-bundler-2-0-during-ci-fails/27411/3 ) , can I follow these instructions to automatically use the Gemfile.lock version of Bundler? https://bundler.io/blog/2019/01/03/announcing-bundler-2.html
if I call `super` from in method :name in Person < User, will the call return to the Person class after calling `name` in User?
Posted this in #programming but thought I'd throw it in here (Rails app)
I've been trying to find the cause of a DB deadlock for the past few days and am close to losing it. it looks like the same DB transaction block is being hit by concurrent requests. The DB transaction issues 2 `UPDATE` SQL statements, but somehow, concurrent transactions are updating the rows in different orders. Is this even possible?
what's the difference between these 2 Ruby methods? I don't understand why you would make this change. https://hastebin.com/tisapukoju.rb
matthewd, so in `foo`, `get_bar()` may return nil and assign it to @bar? where as in `other_foo`, once we get a non-nil value from `get_bar()` and assign it to `@bar`, we "protect it" by returning early if it is defined?
actually, that still doesn't make sense. in `foo`, we can get a non-nil value from `get_bar()` and on the second call, @bar would not be redefined by `get_bar()`
because it is already defined? I thought ||= only redefines a variable if the variable is falsey
on the first call to `foo`, `@bar` can be assigned a non-nil value by `get_bar()`. then on the second call, since `@bar` is already defined, `get_bar()` would not be called again. as far as I understand, anyways
I have a view that passes a keywords variable to my controller. I need to search a database for firstname, lastname, or email matches. how can i do this? I have first name working: https://bpaste.net/show/23ddcb83d717