Sha256: df0ed46f4113def36b65b526be9f041661819f3e72686d5af9dc271d128fc4b1

Contents?: true

Size: 188 Bytes

Versions: 6

Compression:

Stored size: 188 Bytes

Contents

class Tag
  include Mongoid::Document
  field :text, type: String
  has_and_belongs_to_many :paranoid_posts
  has_and_belongs_to_many :related, class_name: "Tag", inverse_of: :related
end

Version data entries

6 entries across 6 versions & 3 rubygems

Version Path
mongoid_paranoia-0.4.0 spec/app/models/tag.rb
mongoid_paranoia-0.3.0 spec/app/models/tag.rb
ish_lib_manager-0.0.1 test/dummy/vendor/bundle/ruby/2.3.0/bundler/gems/mongoid-paranoia-83dc8de7b426/spec/app/models/tag.rb
mongoid_paranoia-0.2.1 spec/app/models/tag.rb
mongoid_paranoia-0.2.0 spec/app/models/tag.rb
sepastian-mongoid-paranoia-rails4-0.0.1.alpha spec/app/models/tag.rb