Major Changes:
- added
Viking.View
- extending a
Viking.View
merge events together - added template support to
Viking.View
viarenderTemplate
- added support for
hasMany
relationships inFormBuilder.fieldsFor
- setting a
belongsTo
relation ship set/unsets the corresponding foreign_key - added
Viking.Model.create
andViking.Model.findOrCreateBy
Minor Changes:
Viking.Model.unset
now allows you to unset ahasMany
relationshipViking.FormBuilder
now uses the baseModel for the name for use with STI modelsViking.FormBuilder#fieldsFor
now uses the baseModel for the name for use with STI models- JSON data type sets the
baseModel
to itself - added
imageTag
toViking.View
helpers - added
render
toViking.View
helpers FormBuilder.fieldsFor
accepts a model, collection, or array of recordsViking.Controller
now hascontrollerName
Bugfixes:
- Fixed issue with custom name attribute on
Viking.View.Helpers.textField
- Fixed issue with custom name attribute on
Viking.View.Helpers.select
- Fixed checkBox not having an escape option