Sha256: 07408c98288a1f62a9a30a839a8d5928d5205f93395dd1329496a231d239fef8

Contents?: true

Size: 294 Bytes

Versions: 58

Compression:

Stored size: 294 Bytes

Contents

module Pulitzer
  class PostTag < ActiveRecord::Base
    belongs_to :version
    belongs_to :label, polymorphic: true
    validates :version_id, :label_id, :label_type, presence: true

    def clone_me
      my_clone = self.dup
      my_clone.version_id = nil
      my_clone
    end

  end
end

Version data entries

58 entries across 58 versions & 1 rubygems

Version Path
pulitzer-0.5.7 app/models/pulitzer/post_tag.rb
pulitzer-0.5.6 app/models/pulitzer/post_tag.rb
pulitzer-0.5.5 app/models/pulitzer/post_tag.rb
pulitzer-0.5.4 app/models/pulitzer/post_tag.rb
pulitzer-0.5.3 app/models/pulitzer/post_tag.rb
pulitzer-0.5.2 app/models/pulitzer/post_tag.rb
pulitzer-0.5.1 app/models/pulitzer/post_tag.rb
pulitzer-0.5.0 app/models/pulitzer/post_tag.rb
pulitzer-0.4.16 app/models/pulitzer/post_tag.rb
pulitzer-0.4.15 app/models/pulitzer/post_tag.rb
pulitzer-0.4.14 app/models/pulitzer/post_tag.rb
pulitzer-0.4.13 app/models/pulitzer/post_tag.rb
pulitzer-0.4.12 app/models/pulitzer/post_tag.rb
pulitzer-0.4.11 app/models/pulitzer/post_tag.rb
pulitzer-0.4.10 app/models/pulitzer/post_tag.rb
pulitzer-0.4.9 app/models/pulitzer/post_tag.rb
pulitzer-0.4.8 app/models/pulitzer/post_tag.rb
pulitzer-0.4.7 app/models/pulitzer/post_tag.rb