Sha256: d8033e6e0ddc4bd3744a12f6f4fbf46732eee3deae101e9c5de5c6cb471101c4
Contents?: true
Size: 539 Bytes
Versions: 2
Compression:
Stored size: 539 Bytes
Contents
module PhcdevworksPortfolio class Project::Category < ApplicationRecord # Clean URL Initialize extend FriendlyId # 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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
phcdevworks_portfolio-2.0.1 | app/models/phcdevworks_portfolio/project/category.rb |
phcdevworks_portfolio-2.0.0 | app/models/phcdevworks_portfolio/project/category.rb |