Class: Unico::Customer

Inherits:
Model
  • Object
show all
Defined in:
app/models/unico/customer.rb

Direct Known Subclasses

Customer

Instance Method Summary collapse

Instance Method Details

#to_sObject



12
13
14
# File 'app/models/unico/customer.rb', line 12

def to_s
  name
end

#using_connection(&block) ⇒ Object



16
17
18
# File 'app/models/unico/customer.rb', line 16

def using_connection(&block)
  ActiveRecord::Base.using_connection(id, database, &block)
end