Sha256: 8fb2e93b303010bba348a8e57d42adbadc13d78e5435ca3d72f9fc46b72aceed
Contents?: true
Size: 652 Bytes
Versions: 16
Compression:
Stored size: 652 Bytes
Contents
module PhcdevworksPortfolio class Project::Category < ApplicationRecord # Clean URL Initialize extend FriendlyId # Paper Trail Initialize has_paper_trail :class_name => 'PhcdevworksPortfolio::ProjectCategoryVersions' # Relationships has_and_belongs_to_many :posts, class_name: "Project::Post", :join_table => "phcdevworks_portfolio_categories_posts", :dependent => :destroy belongs_to :user, class_name: "PhcdevworksAccounts::User" # Clean URL Define friendly_id :phcdev_project_category_nice_urls, use: [:slugged, :finders] def phcdev_project_category_nice_urls [:category_name] end end end
Version data entries
16 entries across 16 versions & 1 rubygems