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-50.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-49.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-48.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-47.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-47.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-46.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-44.2.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-44.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-44.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-43.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-42.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-41.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-40.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-40.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-39.0.1 app/models/phcpresspro/modules/connection.rb
phcpresspro-39.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-38.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-37.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-38.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-37.0.0 app/models/phcpresspro/modules/connection.rb