Sha256: d854e1b61319abe6169f6a2e1d94ca31a0f01e81b092011e4616c5094144302b
Contents?: true
Size: 294 Bytes
Versions: 6
Compression:
Stored size: 294 Bytes
Contents
class Profile < ActiveRecord::Base serialize :modules validates_uniqueness_of :label def modules read_attribute(:modules) || [] end def modules=(perms) perms = perms.collect {|p| p.to_sym unless p.blank? }.compact if perms write_attribute(:modules, perms) end end
Version data entries
6 entries across 6 versions & 1 rubygems