app/helpers/asset_helper.rb
def versioned_filename_for( filename )

      manifest = Rails.application.config.assets[:manifest]
      manifest.key?(filename) ? manifest[filename] : filename

    end
# Private helper function that returns the versioned filename for a given filename.
Private helper function that returns the versioned filename for a given filename.
Private helper function that returns the versioned filename for a given filename .
def versioned_filename_for( filename )
      manifest = Rails.application.config.assets[:manifest]
      manifest.key?(filename) ? manifest[filename] : filename
    end
def versioned_filename_for ( filename ) manifest = Rails . application . config . assets [ :manifest ] manifest . key? ( filename ) ? manifest [ filename ] : filename end
Private helper function that returns the versioned filename for a given filename.
Private helper function that returns the versioned filename for a given filename .
filename