Class: Arel::Session

Inherits:
Object
  • Object
show all
Defined in:
lib/tramp/arel_monkey_patches.rb

Instance Method Summary collapse

Instance Method Details

#create(insert, &block) ⇒ Object



2
3
4
# File 'lib/tramp/arel_monkey_patches.rb', line 2

def create(insert, &block)
  insert.call(&block)
end

#delete(delete, &block) ⇒ Object



14
15
16
# File 'lib/tramp/arel_monkey_patches.rb', line 14

def delete(delete, &block)
  delete.call(&block)
end

#read(select, &block) ⇒ Object



6
7
8
# File 'lib/tramp/arel_monkey_patches.rb', line 6

def read(select, &block)
  select.call(&block)
end

#update(update, &block) ⇒ Object



10
11
12
# File 'lib/tramp/arel_monkey_patches.rb', line 10

def update(update, &block)
  update.call(&block)
end