lib/ruic/application.rb in RUIC-0.4.6 vs lib/ruic/application.rb in RUIC-0.5.0

- old
+ new

@@ -78,11 +78,11 @@ # @private do not document until working def referenced_files # TODO: state machines can reference external scripts # TODO: behaviors can reference external scripts - assets.map{ |asset| path_to(asset.src) } - + presentations.flat_map{ |pres| pres.presentation.referenced_files } + assets.map{ |asset| resolve_file_path(asset.src) } + + presentations.flat_map{ |pres| pres.referenced_files } end # @return [Array] all assets referenced by the application. Ordered by the order they appear in the `.uia`. def assets @assets.values.inject(:+)