= {:key => 456} foo(h) # warning: Using the last argument as keyword paramete # deprecated; maybe ** should be added to the call def foo(hash={}, key: nil) end h = {"a" => 123, :key => 456} foo(h) # warning: Splitting the last argument into positional # and keyword parameters is deprecated 35
SELECT * FROM table WHERE ((col >= 3) AND (col <= db[:table].where(col: 3..).sql #=> SELECT * FROM table WHERE (col >= 3) db[:table].where(col: ..9).sql #=> SELECT * FROM table WHERE (col <= 9) 39