-
iCapital Network
- NYC
- http://ashabbir.github.io
Pinned Loading
-
class eval and instance eval
class eval and instance eval 1require 'pry'
23class Person end
45# this goes on an instance of a class
-
ruby yield with block given
ruby yield with block given 1require 'pry'
23# a simple method with args
4def save(x)
5puts "#{x} example"
-
Upsert Through Prepared Statements A...
Upsert Through Prepared Statements Active Record (Conflict Strategy) 1# Reference for Next Time
234# SQL: INSERT <..> ON CONFLICT(column_names_with_conflict,..) DO UPDATE SET <..> WHERE <..>
5# Postgres does binding on $1 (format $number) using the params[non zero index]
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.