lib/sugarcube_pre_setup.rb in sugarcube-3.0.3 vs lib/sugarcube_pre_setup.rb in sugarcube-3.0.4
- old
+ new
@@ -23,11 +23,12 @@
@post_setup_blocks ||= []
end
alias sugarcube_old_setup setup
def setup
- app_files = @files.flatten.select { |file| file.start_with?('app/')}
- @files = @files - app_files
+ app_files = @files.flatten
+
+ @files = []
if @pre_setup_blocks
@pre_setup_blocks.each { |b| b.call(self) }
@pre_setup_blocks = nil
end
@files.concat(app_files)