Sha256: c3df45d295c2927b434690aa8d0330079d8d58d13c31167fb620491a2af036cd

Contents?: true

Size: 583 Bytes

Versions: 55

Compression:

Stored size: 583 Bytes

Contents

module Phcpress
  class Modules::Connection < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Add Paper Trail
    has_paper_trail :class_name => 'Phcpress::ConnectionVersions'

    # Relationships
    belongs_to :post, class_name: 'Phcpress::Article::Post'
    belongs_to :category, class_name: 'Phcpress::Modules::Category'

    # Clean URL Define
    friendly_id :phcpress_connections_slug, use: [:slugged, :finders]

    # Define for Multiple Records
    def phcpress_connections_slug
      [
        [:post_id, :category_id]
      ]
    end

  end
end

Version data entries

55 entries across 55 versions & 1 rubygems

Version Path
phcpress-50.0.0 app/models/phcpress/modules/connection.rb
phcpress-49.0.0 app/models/phcpress/modules/connection.rb
phcpress-48.0.0 app/models/phcpress/modules/connection.rb
phcpress-47.1.0 app/models/phcpress/modules/connection.rb
phcpress-47.0.0 app/models/phcpress/modules/connection.rb
phcpress-46.0.0 app/models/phcpress/modules/connection.rb
phcpress-45.0.0 app/models/phcpress/modules/connection.rb
phcpress-44.0.0 app/models/phcpress/modules/connection.rb
phcpress-43.0.0 app/models/phcpress/modules/connection.rb
phcpress-42.0.0 app/models/phcpress/modules/connection.rb
phcpress-41.0.0 app/models/phcpress/modules/connection.rb
phcpress-40.0.0 app/models/phcpress/modules/connection.rb
phcpress-39.0.0 app/models/phcpress/modules/connection.rb
phcpress-38.0.0 app/models/phcpress/modules/connection.rb
phcpress-37.0.0 app/models/phcpress/modules/connection.rb
phcpress-36.0.0 app/models/phcpress/modules/connection.rb
phcpress-35.0.0 app/models/phcpress/modules/connection.rb
phcpress-34.0.0 app/models/phcpress/modules/connection.rb
phcpress-33.0.0 app/models/phcpress/modules/connection.rb
phcpress-32.0.0 app/models/phcpress/modules/connection.rb