Sha256: 31433494dbcbdb48182a0a94316ac0cc6a10d9068884bbba31d2fddbf156f195

Contents?: true

Size: 627 Bytes

Versions: 19

Compression:

Stored size: 627 Bytes

Contents

module PhcdevworksPortfolio
  class Project::Type < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

    # Paper Trail Initialize
    has_paper_trail :class_name => 'PhcdevworksPortfolio::ProjectTypeVersions'

    # Relationships
    has_and_belongs_to_many :posts, class_name: "Project::Post", :join_table => "phcdevworks_portfolio_posts_types", :dependent => :destroy
    belongs_to :user, class_name: "PhcdevworksAccounts::User"

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

    def phcdev_project_type_nice_urls
      [:type_name]
    end

  end
end

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
phcdevworks_portfolio-7.0.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-6.0.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-5.0.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.7.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.6.2 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.6.1 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.6.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.5.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.4.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.3.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.2.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.1.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-4.0.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.1.1 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.1.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.0.4 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.0.3 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.0.2 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-3.0.0 app/models/phcdevworks_portfolio/project/type.rb