Flowdock
method

digest_for

Importance_0
v3.2.13 - Show latest stable - 0 notes - Class: AssetPaths
digest_for(logical_path) public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File actionpack/lib/sprockets/helpers/rails_helper.rb, line 131
        def digest_for(logical_path)
          if digest_assets && asset_digests && (digest = asset_digests[logical_path])
            return digest
          end

          if compile_assets
            if digest_assets && asset = asset_environment[logical_path]
              return asset.digest_path
            end
            return logical_path
          else
            raise AssetNotPrecompiledError.new("#{logical_path} isn't precompiled")
          end
        end
Register or log in to add new notes.