Sha256: 1637f528b3ff68981ed806c211e7a18876b8a0b38581cc040a1bead046ed41d9

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 Bytes

Contents

class User < ActiveRecord::Base
  
  belongs_to :account
    
  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
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
serializer-0.0.8 test/dummy/app/models/user.rb