#RubyOnRails - 15 April 2018
« Back 1 day Forward 1 day »
[01:27:19] fcser__: Hmm is there some way to use validation methods like validates :somefield, presence: true, if: some_condition? inside a model instance method?
[05:00:43] baweaver: Just posted a fairly detailed article on pattern matching and FP in Ruby: https://medium.com/@baweaver/for-want-of-pattern-matching-in-ruby-the-creation-of-qo-c3b267109b25
[19:00:38] cagmz: 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?