Sha256: ee8310de8d13e3c69a81592be4a314ea029027f82c62e38d960b15afe2377d95

Contents?: true

Size: 240 Bytes

Versions: 4

Compression:

Stored size: 240 Bytes

Contents

class Tagging < ActiveRecord::Base
  attr_accessible :tag, :tag_id, :taggable_id, :taggable_type, :taggable
  validates_presence_of :tag_id, :taggable_id, :taggable_type
  
  belongs_to :tag
  belongs_to :taggable, :polymorphic => true
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
activeadmin_associations-0.1.3 spec/dummy/app/models/tagging.rb
aa_associations-0.1.2 test/dummy/app/models/tagging.rb
aa_associations-0.1.1 test/dummy/app/models/tagging.rb
aa_associations-0.1.0 test/dummy/app/models/tagging.rb