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-69.1.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-69.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-68.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-67.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-66.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-65.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-64.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-63.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-62.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-61.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-60.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-59.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-58.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-57.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-56.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-55.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-54.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-53.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-52.0.0 app/models/phcpresspro/modules/connection.rb
phcpresspro-51.0.0 app/models/phcpresspro/modules/connection.rb