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