milestones_helper.rb 233 Bytes
Newer Older
1 2 3
module MilestonesHelper
  def milestones_filter_path(opts = {})
    if @project
Vinnie Okada's avatar
Vinnie Okada committed
4
      namespace_project_milestones_path(@project.namespace, @project, opts)
5 6 7 8 9
    elsif @group
      group_milestones_path(@group, opts)
    end
  end
end