Sha256: 6521090bfca895d5c3256ee77dcdbd8c7f6a62c68a10ed97d7610673a92f9cfc

Contents?: true

Size: 576 Bytes

Versions: 2

Compression:

Stored size: 576 Bytes

Contents

class NumberValue < ActiveRecord::Base
  include AnnotationsVersionFu
  
  validates_presence_of :number
  
  acts_as_annotation_value :content_field => :number
  
  belongs_to :version_creator, 
             :class_name => "::#{Annotations::Config.user_model_name}"
  
  # ========================
  # Versioning configuration
  # ------------------------
  
  annotations_version_fu do
    validates_presence_of :number
    
    belongs_to :version_creator, 
               :class_name => "::#{Annotations::Config.user_model_name}"
  end
  
  # ========================
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
my_annotations-0.6.0 lib/app/models/number_value.rb
my_annotations-0.5.1 lib/app/models/number_value.rb