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