Module: PushType::NodeUrlHelper

Defined in:
app/helpers/push_type/node_url_helper.rb

Instance Method Summary collapse

Instance Method Details

#node_path(source, options = {}) ⇒ Object



4
5
6
7
# File 'app/helpers/push_type/node_url_helper.rb', line 4

def node_path(source, options = {})
  permalink = source.try(:permalink) || source
  main_app.node_path(permalink, options)
end

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



9
10
11
12
# File 'app/helpers/push_type/node_url_helper.rb', line 9

def node_url(source, options = {})
  permalink = source.try(:permalink) || source
  main_app.node_url(permalink, options)
end