Skip to content

Commit

Permalink
Fix removing parenthesis
Browse files Browse the repository at this point in the history
  • Loading branch information
iNecas committed Jan 28, 2014
1 parent 0d4663a commit 22052df
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/apipie/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,13 +68,13 @@ def routes_for_action(controller, method)
route.path.spec.to_s
end

path.gsub!('(.:format)', '')
path.gsub!(/[()]/, '')

Apipie.configuration.api_base_url.values.each do |values|
path.gsub!("#{values}/", '/')
end

path.gsub!('(.:format)', '')
path.gsub!('[()]', '')

{ path: path, verb: human_verb(route) }
end
end
Expand Down

0 comments on commit 22052df

Please sign in to comment.