Sha256: 8f61d100709da44b7444aa49b56ba42c5155f7c3150bea3d3af51b564efa9c07
Contents?: true
Size: 502 Bytes
Versions: 3
Compression:
Stored size: 502 Bytes
Contents
module Formol class UserPreference < ActiveRecord::Base # Security attr_protected :user_id attr_readonly :user_id #Associations belongs_to :user, :class_name => Formol.config.user_class #Validations validates :user, :presence => true validates :signature, :length => { :maximum => 120, :allow_blank => true } #Normalization normalize_attribute :signature, :with => [:strip, :blank] end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
formol-0.0.6 | app/models/formol/user_preference.rb |
formol-0.0.5 | app/models/formol/user_preference.rb |
formol-0.0.4 | app/models/formol/user_preference.rb |