Sha256: eb48b5ac73472e67dfdfa81df6dad4108abdaccc0c7eeba5fa2bdeb86f8ca6bf
Contents?: true
Size: 276 Bytes
Versions: 2
Compression:
Stored size: 276 Bytes
Contents
# -*- encoding : utf-8 -*- class User < Map def id() self[:id] end def email() self[:email] end def User.current @current ||= User.new(:id => '42', :email => 'ara.t.howard@gmail.com') end end module Kernel private def current_user() User.current end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
dao-4.4.4 | test/helper.rb |
dao-4.4.2 | test/helper.rb |