Sha256: 8e69de6b3ce3b84d3b161cd8fc3f7a68176fdfbcc0e7a73cea7e90d767f83015

Contents?: true

Size: 384 Bytes

Versions: 19

Compression:

Stored size: 384 Bytes

Contents

module Pulitzer
  class PostTag < Pulitzer::ApplicationRecord
    belongs_to :version
    belongs_to :label, polymorphic: true
    validates :version, :label, presence: true

    def self.export_config
      { except: [:id, :version_id, :created_at, :updated_at] }

    end

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

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
pulitzer-0.15.31 app/models/pulitzer/post_tag.rb
pulitzer-0.15.30 app/models/pulitzer/post_tag.rb
pulitzer-0.15.29 app/models/pulitzer/post_tag.rb
pulitzer-0.15.28 app/models/pulitzer/post_tag.rb
pulitzer-0.15.27 app/models/pulitzer/post_tag.rb
pulitzer-0.15.26 app/models/pulitzer/post_tag.rb
pulitzer-0.15.25 app/models/pulitzer/post_tag.rb
pulitzer-0.15.24 app/models/pulitzer/post_tag.rb
pulitzer-0.15.23 app/models/pulitzer/post_tag.rb
pulitzer-0.15.22 app/models/pulitzer/post_tag.rb
pulitzer-0.15.21 app/models/pulitzer/post_tag.rb
pulitzer-0.15.20 app/models/pulitzer/post_tag.rb
pulitzer-0.15.19 app/models/pulitzer/post_tag.rb
pulitzer-0.15.18 app/models/pulitzer/post_tag.rb
pulitzer-0.15.17 app/models/pulitzer/post_tag.rb
pulitzer-0.15.16 app/models/pulitzer/post_tag.rb
pulitzer-0.15.15 app/models/pulitzer/post_tag.rb
pulitzer-0.15.14 app/models/pulitzer/post_tag.rb
pulitzer-0.15.13 app/models/pulitzer/post_tag.rb