Method: Dao::Data#update

Defined in:
lib/dao/data.rb

#update(*args, &block) ⇒ Object



15
16
17
18
19
20
21
# File 'lib/dao/data.rb', line 15

def update(*args, &block)
  if args.size==1 and args.first.respond_to?(:to_dao)
    to_dao = args.first.to_dao
    return super(to_dao)
  end
  super
end