class Refinery::Pages::Type
Attributes
name[RW]
parts[RW]
template[RW]
Public Instance Methods
parts=(new_parts)
click to toggle source
# File lib/refinery/pages/type.rb, line 7 def parts=(new_parts) @parts = if new_parts.all? { |v| v.is_a?(String) } new_syntax = new_parts.map do |part| { title: part, slug: part.downcase.gsub(" ", "_") } end Refinery.deprecate( "Change specific page template page parts from #{new_parts} to #{new_syntax}", when: "4.1.0" ) new_syntax else new_parts end end