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-31.2.0 app/models/phcpress/modules/connection.rb
phcpress-31.1.0 app/models/phcpress/modules/connection.rb
phcpress-31.0.0 app/models/phcpress/modules/connection.rb
phcpress-30.0.0 app/models/phcpress/modules/connection.rb
phcpress-29.0.0 app/models/phcpress/modules/connection.rb
phcpress-28.0.0 app/models/phcpress/modules/connection.rb
phcpress-27.0.0 app/models/phcpress/modules/connection.rb
phcpress-26.0.1 app/models/phcpress/modules/connection.rb
phcpress-26.0.0 app/models/phcpress/modules/connection.rb
phcpress-25.1.0 app/models/phcpress/modules/connection.rb
phcpress-25.0.0 app/models/phcpress/modules/connection.rb
phcpress-24.0.0 app/models/phcpress/modules/connection.rb
phcpress-23.2.0 app/models/phcpress/modules/connection.rb
phcpress-23.1.0 app/models/phcpress/modules/connection.rb
phcpress-23.0.0 app/models/phcpress/modules/connection.rb
phcpress-22.0.1 app/models/phcpress/modules/connection.rb
phcpress-22.0.0 app/models/phcpress/modules/connection.rb
phcpress-21.0.0 app/models/phcpress/modules/connection.rb
phcpress-20.0.0 app/models/phcpress/modules/connection.rb
phcpress-19.0.1 app/models/phcpress/modules/connection.rb