Sha256: 547300df6571c2a34f10aee3bc2783d01d085420fad1ed85e709648d4a5100ab
Contents?: true
Size: 471 Bytes
Versions: 40
Compression:
Stored size: 471 Bytes
Contents
Rev.registerComponent 'Form', render: -> className = @classAdd "RevForm": true <form {...@props} className={className} method={@getSupportedMethod()}> <Rev.Components.AuthenticityToken /> <Rev.Components.MethodOverride method={@props.method?.toUpperCase() or 'GET'} /> {@props.children} </form> getSupportedMethod: -> method = @props.method?.toUpperCase() method ||= 'GET' if method == 'GET' then method else 'POST'
Version data entries
40 entries across 40 versions & 1 rubygems