File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -100,21 +100,21 @@ def configure(&block)
100
100
end
101
101
end
102
102
103
- if app . config . assets . compile
104
- if app . routes . respond_to? ( :prepend )
105
- app . routes . prepend do
106
- mount app . assets => app . config . assets . prefix
107
- end
108
- end
109
- end
110
-
111
103
# No more configuration changes at this point.
112
104
# With cache classes on, Sprockets won't check the FS when files
113
105
# change. Preferable in production when the FS only changes on
114
106
# deploys when the app restarts.
115
107
if app . config . cache_classes
116
108
app . assets = app . assets . index
117
109
end
110
+
111
+ if app . config . assets . compile
112
+ if app . routes . respond_to? ( :prepend )
113
+ app . routes . prepend do
114
+ mount app . assets => app . config . assets . prefix
115
+ end
116
+ end
117
+ end
118
118
end
119
119
end
120
120
end
You can’t perform that action at this time.
0 commit comments