Module: Noodall::Permalinks

Defined in:
lib/noodall/permalinks.rb

Instance Method Summary collapse

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, options = {})
  node = node.is_a?(String) ? node : node.permalink.to_s
  node_permalink_path node, options
end

#node_url(node, options = {}) ⇒ Object



9
10
11
# File 'lib/noodall/permalinks.rb', line 9

def node_url(node, options = {})
  node_path(node, options.merge(:only_path => false))
end