Sha256: 4d14595967f7d2af89abde5ba9192b0ea20be476a3ceff8651b8a317e9c696ca
Contents?: true
Size: 710 Bytes
Versions: 1
Compression:
Stored size: 710 Bytes
Contents
class User < ActiveRecord::Base belongs_to :account has_one :subscription has_serialized :settings do |settings| settings.define :tw_share, :default => true, :type => :boolean settings.define :fb_share, :default => true, :type => :boolean settings.define :tb_share, :default => true, :type => :boolean settings.define :status, :default => :user, :type => :symbol settings.define :location, :type => :string settings.define :percentage, :default => 0.0, :type => :float settings.define :permissions, :default => [], :type => :array settings.define :mystery settings.define :notifications, :type => :boolean, :default => false end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
serializer-0.0.9 | test/dummy/app/models/user.rb |