Module: Cms::Concerns::Addressable::DynamicPath
- Defined in:
- lib/cms/concerns/can_be_addressable.rb
Instance Method Summary collapse
-
#path ⇒ String
The relative path to this content.
- #slug ⇒ Object
- #slug=(slug) ⇒ Object
Instance Method Details
#path ⇒ String
Returns The relative path to this content.
151 152 153 |
# File 'lib/cms/concerns/can_be_addressable.rb', line 151 def path self.class.calculate_path(slug) end |
#slug ⇒ Object
155 156 157 158 159 160 161 |
# File 'lib/cms/concerns/can_be_addressable.rb', line 155 def slug if section_node section_node.slug else nil end end |
#slug=(slug) ⇒ Object
163 164 165 166 167 168 169 170 |
# File 'lib/cms/concerns/can_be_addressable.rb', line 163 def slug=(slug) if section_node section_node.slug = slug else @slug = slug # Store temporarily until there is a section_node created. end dirty! end |