Sha256: 1bf14de6bd7387fdf35fccb3d707043d7640396bb5b786ca040efc1d9e9b955d

Contents?: true

Size: 601 Bytes

Versions: 85

Compression:

Stored size: 601 Bytes

Contents

module Phcpresspro
  class Modules::Connection < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

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

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

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

  end
end

Version data entries

85 entries across 85 versions & 1 rubygems

Version Path
phcpresspro-36.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-36.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-35.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-34.0.1 app/models/phcpresspro/modules/connection.rb
phcpresspro-34.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-33.0.2 app/models/phcpresspro/modules/connection.rb
phcpresspro-33.0.1 app/models/phcpresspro/modules/connection.rb
phcpresspro-33.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-32.0.1 app/models/phcpresspro/modules/connection.rb
phcpresspro-32.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-31.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-31.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-30.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-29.0.1 app/models/phcpresspro/modules/connection.rb
phcpresspro-29.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-28.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-27.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-25.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-24.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-23.1.0 app/models/phcpresspro/modules/connection.rb