Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
discourse-annotator / app / models / discourse_annotator / text_annotation.rb
Size: Mime:
module DiscourseAnnotator
  class TextAnnotation < Annotation


    # Allow saving of attributes on associated records through the parent,
    # :autosave option is automatically enabled on every association
    accepts_nested_attributes_for :ranges


    # Validations
    validates :version, presence: true
    validates :quote, presence: true
    validates :uri, presence: true


    def text_annotation?
      true
    end


  end
end