Module: Noodall::Permalinks
- Defined in:
- lib/noodall/permalinks.rb
Instance Method Summary collapse
-
#node_path(node, options = {}) ⇒ Object
Handy place for all the permalink methods.
- #node_url(node, options = {}) ⇒ Object
Instance Method Details
#node_path(node, options = {}) ⇒ Object
Handy place for all the permalink methods
4 5 6 7 |
# File 'lib/noodall/permalinks.rb', line 4 def node_path(node, = {}) node = node.is_a?(String) ? node : node.permalink.to_s node_permalink_path node, end |
#node_url(node, options = {}) ⇒ Object
9 10 11 |
# File 'lib/noodall/permalinks.rb', line 9 def node_url(node, = {}) node_path(node, .merge(:only_path => false)) end |