Method: Alchemy::Node#url
- Defined in:
- app/models/alchemy/node.rb
#url ⇒ Object
Returns the url
Either the value is stored in the database, aka. an external url. Or, if attached, the values comes from a page.
76 77 78 |
# File 'app/models/alchemy/node.rb', line 76 def url page&.url_path || read_attribute(:url).presence end |