Sha256: 59100ba2987ae278f2a40aaddacb4c6c6607e1962b5c1e1645c713379f2726ea
Contents?: true
Size: 524 Bytes
Versions: 4
Compression:
Stored size: 524 Bytes
Contents
# Taggings are the many to many links that associated tags with people. There isn't much to see here. module Droom class Tagging < ActiveRecord::Base belongs_to :tag belongs_to :taggee, :polymorphic => true # The tagging interface allows the creation of new tags on save but in normal use this would never be hit: # the ajax-based tag-adder creates tags in the background so the form needs only the nested tagging fields. # accepts_nested_attributes_for :tag, :reject_if => :all_blank end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
droom-0.4.3 | app/models/droom/tagging.rb |
droom-0.4.2 | app/models/droom/tagging.rb |
droom-0.4.1 | app/models/droom/tagging.rb |
droom-0.2.1 | app/models/droom/tagging.rb |