Module: PathHelper

Defined in:
app/helpers/path_helper.rb

Instance Method Summary collapse

Instance Method Details

#component_path(component) ⇒ Object



2
3
4
5
6
7
# File 'app/helpers/path_helper.rb', line 2

def component_path(component)
  components = params[:components]
  return super(component) unless components

  send("#{components.singularize}_path".to_sym, component.id) if components
end