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.13.0 app/models/pulitzer/post_tag.rb
pulitzer-0.12.4 app/models/pulitzer/post_tag.rb
pulitzer-0.12.3 app/models/pulitzer/post_tag.rb
pulitzer-0.12.2 app/models/pulitzer/post_tag.rb
pulitzer-0.12.1 app/models/pulitzer/post_tag.rb
pulitzer-0.12.0 app/models/pulitzer/post_tag.rb
pulitzer-0.11.3 app/models/pulitzer/post_tag.rb
pulitzer-0.11.2 app/models/pulitzer/post_tag.rb
pulitzer-0.11.1 app/models/pulitzer/post_tag.rb
pulitzer-0.11.0 app/models/pulitzer/post_tag.rb
pulitzer-0.10.3 app/models/pulitzer/post_tag.rb
pulitzer-0.10.2 app/models/pulitzer/post_tag.rb
pulitzer-0.10.1 app/models/pulitzer/post_tag.rb
pulitzer-0.10.0 app/models/pulitzer/post_tag.rb
pulitzer-0.5.14 app/models/pulitzer/post_tag.rb
pulitzer-0.5.13 app/models/pulitzer/post_tag.rb
pulitzer-0.5.11 app/models/pulitzer/post_tag.rb
pulitzer-0.5.10 app/models/pulitzer/post_tag.rb
pulitzer-0.5.9 app/models/pulitzer/post_tag.rb
pulitzer-0.5.8 app/models/pulitzer/post_tag.rb