Sha256: 933c9a3b193ccb7c0eebc64dd58261d45c207899accd280d63863cdda25530b4

Contents?: true

Size: 1011 Bytes

Versions: 5

Compression:

Stored size: 1011 Bytes

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

Version data entries

5 entries across 5 versions & 3 rubygems

Version Path
bborn-acts-as-taggable-on-2.2.1 spec/models.rb
acts-as-taggable-on-2.2.2 spec/models.rb
acts-as-taggable-on-2.2.1 spec/models.rb
acts-as-taggable-on-2.2.0 spec/models.rb
rylwin-acts-as-taggable-on-2.1.1a spec/models.rb