Sha256: 766c488948335bb800dbc87b4675995221ae88372905142707772f087e0ba977
Contents?: true
Size: 352 Bytes
Versions: 2
Compression:
Stored size: 352 Bytes
Contents
module Pulitzer class PartialType < ActiveRecord::Base belongs_to :free_form_section_type belongs_to :post_type belongs_to :layout delegate :template_path, to: :layout, allow_nil: true def folder_path label.downcase.gsub(/ /,'_').gsub(/\W/,'') end def available_layouts post_type.layouts end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pulitzer-0.12.5 | app/models/pulitzer/partial_type.rb |
pulitzer-0.12.4 | app/models/pulitzer/partial_type.rb |