Sha256: e5b049bf818154008b7d5d0c5adaffb45081dd2be3be71007243a801ea996fe7
Contents?: true
Size: 872 Bytes
Versions: 8
Compression:
Stored size: 872 Bytes
Contents
(function() { Rev.registerComponent('Form', { render: function() { var className, ref; className = this.classAdd({ "RevForm": true }); return React.createElement("form", React.__spread({}, this.props, { "className": className, "method": this.getSupportedMethod() }), React.createElement(Rev.Components.AuthenticityToken, null), React.createElement(Rev.Components.MethodOverride, { "method": ((ref = this.props.method) != null ? ref.toUpperCase() : void 0) || 'GET' }), this.props.children); }, getSupportedMethod: function() { var method, ref; method = (ref = this.props.method) != null ? ref.toUpperCase() : void 0; method || (method = 'GET'); if (method === 'GET') { return method; } else { return 'POST'; } } }); }).call(this);
Version data entries
8 entries across 8 versions & 1 rubygems