sergeykish

Results 4 issues of sergeykish

Hello That's part of the `rails 5` deprecation warnings cleanup. It fixes `DEPRECATION WARNING: Passing string to define callback`. Change is almost mechanical and I hope new lambda syntax is...

Hello I'm on rails 5 and it shows `DEPRECATION WARNING: Passing string to define callback`. Fixed, works great, created pull request https://github.com/lostboy/workless/pull/92 Would be happy to see it upstream. Thanks

ActiveRecord::StatementInvalid: PG::SyntaxError: ERROR: VALUES lists must all be the same length

Once run `bulk_insert` with non constant attributes count records = [ { :name => "Foo", :age => 30 }, { :name => "Bar" } ] expect {SampleRecord.bulk_insert(records)}.to change{SampleRecord.count}.by(records.size) It fails...