Created
July 6, 2011 13:52
-
-
Save tritchey/1067272 to your computer and use it in GitHub Desktop.
template with validator
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
PortField: SC.TextField.extend(SC.Validatable, { | |
validator: SC.Validator.PositiveInteger.extend({ places: 0 }) | |
}), |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ScaleModel.AlertSMTP = SC.Record.extend( | |
/** @scope ScaleModel.AlertSMTP.prototype */ { | |
smtpServer: SC.Record.attr(String), | |
useSSL: SC.Record.attr(Boolean), | |
port: SC.Record.attr(Number), | |
requiresAuthentication: SC.Record.attr(Boolean, { key: 'useAuth' }), | |
username: SC.Record.attr(String, { key: 'authUser' }), | |
password: SC.Record.attr(String, { key: 'authPassword' }), | |
cluster: SC.Record.toOne("ScaleModel.Cluster", { | |
inverse: "alertSMTP", isMaster: NO | |
}) | |
}) ; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment