File tree 2 files changed +5
-13
lines changed
spec/dummy/config/initializers
2 files changed +5
-13
lines changed Original file line number Diff line number Diff line change @@ -3,6 +3,11 @@ class RoutesFormater
3
3
4
4
class Path
5
5
def format ( rails_path_spec )
6
+ rails_path_spec . gsub! ( '(.:format)' , '' )
7
+ rails_path_spec . gsub! ( /[()]/ , '' )
8
+ Apipie . configuration . api_base_url . values . each do |values |
9
+ rails_path_spec . gsub! ( "#{ values } /" , '/' )
10
+ end
6
11
rails_path_spec
7
12
end
8
13
end
Original file line number Diff line number Diff line change 73
73
# config.link_extension = ""
74
74
end
75
75
76
- # define formatter
77
- class RoutesFormater ::Path
78
- def format ( rails_path_spec )
79
- rails_path_spec . gsub! ( '(.:format)' , '' )
80
- rails_path_spec . gsub! ( /[()]/ , '' )
81
- Apipie . configuration . api_base_url . values . each do |values |
82
- rails_path_spec . gsub! ( "#{ values } /" , '/' )
83
- end
84
- rails_path_spec
85
- end
86
- end
87
-
88
-
89
76
# integer validator
90
77
class Apipie ::Validator ::IntegerValidator < Apipie ::Validator ::BaseValidator
91
78
You can’t perform that action at this time.
0 commit comments