Sha256: 0217b03f77fc43aae1b12a79cad789e85aad582704e84efac2843df6b0f072ad

Contents?: true

Size: 629 Bytes

Versions: 13

Compression:

Stored size: 629 Bytes

Contents

module PhcdevworksPortfolio
  class Project::Type < ApplicationRecord

    # Clean URL Initialize
    extend FriendlyId

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

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

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

    def project_type_nice_urls
      [:project_type_name]
    end

  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
phcdevworks_portfolio-10.1.1 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.1.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.5 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.4 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.3 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.2 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.1 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-10.0.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-9.4.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-9.3.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-9.2.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-9.1.0 app/models/phcdevworks_portfolio/project/type.rb
phcdevworks_portfolio-9.0.1 app/models/phcdevworks_portfolio/project/type.rb