Sha256: 52b5e4ba5b160b31d0100b213bcdd31b4a1183c4ba7beec03a9fcca10289b55b

Contents?: true

Size: 568 Bytes

Versions: 2

Compression:

Stored size: 568 Bytes

Contents

class TextValue < ActiveRecord::Base
  include AnnotationsVersionFu
  
  validates_presence_of :text
  
  acts_as_annotation_value :content_field => :text
  
  belongs_to :version_creator, 
             :class_name => "::#{Annotations::Config.user_model_name}"
  
  # ========================
  # Versioning configuration
  # ------------------------
  
  annotations_version_fu do
    validates_presence_of :text
    
    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/text_value.rb
my_annotations-0.5.1 lib/app/models/text_value.rb