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.15.12 app/models/pulitzer/post_tag.rb
pulitzer-0.15.11 app/models/pulitzer/post_tag.rb
pulitzer-0.15.10 app/models/pulitzer/post_tag.rb
pulitzer-0.15.9 app/models/pulitzer/post_tag.rb
pulitzer-0.15.8 app/models/pulitzer/post_tag.rb
pulitzer-0.15.7 app/models/pulitzer/post_tag.rb
pulitzer-0.15.6 app/models/pulitzer/post_tag.rb
pulitzer-0.15.5 app/models/pulitzer/post_tag.rb
pulitzer-0.15.4 app/models/pulitzer/post_tag.rb
pulitzer-0.15.3 app/models/pulitzer/post_tag.rb
pulitzer-0.15.2 app/models/pulitzer/post_tag.rb
pulitzer-0.15.1 app/models/pulitzer/post_tag.rb
pulitzer-0.15.0 app/models/pulitzer/post_tag.rb
pulitzer-0.14.4 app/models/pulitzer/post_tag.rb
pulitzer-0.14.3 app/models/pulitzer/post_tag.rb
pulitzer-0.14.2 app/models/pulitzer/post_tag.rb
pulitzer-0.14.1 app/models/pulitzer/post_tag.rb
pulitzer-0.14.0 app/models/pulitzer/post_tag.rb
pulitzer-0.13.1 app/models/pulitzer/post_tag.rb
pulitzer-0.12.5 app/models/pulitzer/post_tag.rb