Sha256: 794651351975508d9b4cb8db4393cfe0da90fb38e1a26cc4201bce2c3904890b
Contents?: true
Size: 317 Bytes
Versions: 24
Compression:
Stored size: 317 Bytes
Contents
module ApplicationHelper def structure_path(record) return if record.nil? case record.structure_type when StructureType.page then record.slug when StructureType.main then root_path when StructureType.redirect then record.redirect_url when StructureType.group then "#" end end end
Version data entries
24 entries across 24 versions & 1 rubygems