Search the assets path for the assets file.  Asset files must be have un...

...ique names and paths.

Also looks for files relative to the current asset that is being processed.
For Example href="../my-other-component/other-component.html" will still be included.
In addition as long as the root extension is correct it will work as well
(index_action.html.erb) will still be included even if you use href="other-component.html"
I would simplify this method to something, less verbose, like:
```
      def component_path(file)
        search_file = file.sub(/^(\.\.\/)+/, '/').sub(/^\/*/, '')
        ::Rails.application.assets.paths.each do |path|
          file_list = Dir.glob( "#{File.absolute_path search_file, path }*")
          return file_list.first unless file_list.blank?
        end
        component = File.absolute_path file, File.dirname(@context.pathname)
        return File.exists?(component) ? component : nil
      end
```