Skip to content
View ashabbir's full-sized avatar

Organizations

@Accern

Block or report ashabbir

Block user

Prevent this user from interacting with your repositories and sending you notifications. Learn more about blocking users.

You must be logged in to block users.

Please don't include any personal information such as legal names or email addresses. Maximum 100 characters, markdown supported. This note will be visible to only you.
Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned Loading

  1. class eval and instance eval class eval and instance eval
    1
    require 'pry'
    2
    
                  
    3
    class Person end
    4
    
                  
    5
    # this goes on an instance of a class
  2. ruby yield with block given ruby yield with block given
    1
    require 'pry'
    2
    
                  
    3
    # a simple method with args
    4
    def save(x)
    5
      puts "#{x} example"
  3. Upsert Through Prepared Statements A... Upsert Through Prepared Statements Active Record (Conflict Strategy)
    1
    # Reference for Next Time
    2
    
                  
    3
    
                  
    4
    # 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]