Sha256: b2ff5b8ea9d087eddfc8679927bfd45029064667d39339c8afdcc23f6ba06846
Contents?: true
Size: 190 Bytes
Versions: 2
Compression:
Stored size: 190 Bytes
Contents
require 'json' class User < Sequel::Model(DB::Main[:users]) prepend Alfa::UserModule plugin :serialization, :json, :groups def before_save self.groups ||= [] super end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
alfa-0.0.8.pre | dummy/project/db/main/models/user.rb |
alfa-0.0.7.pre | dummy/project/db/main/models/user.rb |