Sha256: 2ccef4c43de620cfbef5d70003f46409cb27691f7022e62730f649c853d7fbbf

Contents?: true

Size: 237 Bytes

Versions: 1

Compression:

Stored size: 237 Bytes

Contents

class EtiquetaRails::Tagging < ActiveRecord::Base
  belongs_to :taggable, :polymorphic => true
  belongs_to :tag, :class_name => 'EtiquetaRails::Tag'

  validates :taggable, :presence => true
  validates :tag,      :presence => true
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
etiqueta_rails-0.0.2 spec/internal/app/models/etiqueta_rails/tagging.rb