Sha256: 518a60dd773671beff3eeef042b7e3d87f57a7b256bf988806f394a8f0ae410b

Contents?: true

Size: 1.1 KB

Versions: 6

Compression:

Stored size: 1.1 KB

Contents

class TaggableModel < ActiveRecord::Base
  acts_as_taggable
  acts_as_taggable_on :languages
  acts_as_taggable_on :skills
  acts_as_taggable_on :needs, :offerings
  has_many :untaggable_models
end

class CachedModel < ActiveRecord::Base
  acts_as_taggable
end

class OtherCachedModel < ActiveRecord::Base
  acts_as_taggable_on :languages, :statuses, :glasses
end

class OtherTaggableModel < ActiveRecord::Base
  acts_as_taggable_on :tags, :languages
  acts_as_taggable_on :needs, :offerings
end

class InheritingTaggableModel < TaggableModel
end

class AlteredInheritingTaggableModel < TaggableModel
  acts_as_taggable_on :parts
end

class TaggableUser < ActiveRecord::Base
  acts_as_tagger
end

class UntaggableModel < ActiveRecord::Base
  belongs_to :taggable_model
end

class NonStandardIdTaggableModel < ActiveRecord::Base
  set_primary_key "an_id"
  acts_as_taggable
  acts_as_taggable_on :languages
  acts_as_taggable_on :skills
  acts_as_taggable_on :needs, :offerings
  has_many :untaggable_models
end

class OrderedTaggableModel < ActiveRecord::Base
  acts_as_ordered_taggable
  acts_as_ordered_taggable_on :colours
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
crowdint_acts-as-taggable-on-2.3.5 spec/models.rb
crowdint_acts-as-taggable-on-2.3.4 spec/models.rb
crowdint_acts-as-taggable-on-2.3.3 spec/models.rb
crowdint_acts-as-taggable-on-2.3.2 spec/models.rb
acts-as-taggable-on-2.3.1 spec/models.rb
acts-as-taggable-on-2.3.0 spec/models.rb