class Sprockets::Asset

def encode_with(coder)

Copy serialized attributes to the coder object
def encode_with(coder)
  coder['class'] = self.class.name.sub(/Sprockets::/, '')
  self.class.serialized_attributes.each do |attr|
    value = send(attr)
    coder[attr] = case value
      when Time
        value.iso8601
      else
        value.to_s
      end
  end
  coder['pathname'] = relativize_root_path(coder['pathname'])
end