File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -2,4 +2,4 @@ source "https://rubygems.org"
2
2
3
3
gemspec
4
4
5
- gem 'rails', '~> 4.2.5'
5
+ gem 'rails', '~> 4.2.5.1 '
Original file line number Diff line number Diff line change @@ -105,7 +105,8 @@ namespace :apipie do
105
105
else
106
106
File . expand_path ( "../../../app/views/apipie/apipies" , __FILE__ )
107
107
end
108
- @apipie_renderer = ActionView ::Base . new ( base_path )
108
+ layouts_path = File . expand_path ( "../../../app/views/layouts" , __FILE__ )
109
+ @apipie_renderer = ActionView ::Base . new ( [ base_path , layouts_path ] )
109
110
@apipie_renderer . singleton_class . send ( :include , ApipieHelper )
110
111
return @apipie_renderer
111
112
end
@@ -118,7 +119,7 @@ namespace :apipie do
118
119
end
119
120
f . write av . render (
120
121
:template => "#{ template } " ,
121
- :layout => ( layout && "../../layouts/ apipie/#{ layout } " ) )
122
+ :layout => ( layout && "apipie/#{ layout } " ) )
122
123
end
123
124
end
124
125
You can’t perform that action at this time.
0 commit comments