Skip to content

0.8.0

Latest
Compare
Choose a tag to compare
@malomalo malomalo released this 13 Jul 22:50
· 193 commits to master since this release

Major Changes:

  • added Viking.View
  • extending a Viking.View merge events together
  • added template support to Viking.View via renderTemplate
  • added support for hasMany relationships in FormBuilder.fieldsFor
  • setting a belongsTo relation ship set/unsets the corresponding foreign_key
  • added Viking.Model.create and Viking.Model.findOrCreateBy

Minor Changes:

  • Viking.Model.unset now allows you to unset a hasMany relationship
  • Viking.FormBuilder now uses the baseModel for the name for use with STI models
  • Viking.FormBuilder#fieldsFor now uses the baseModel for the name for use with STI models
  • JSON data type sets the baseModel to itself
  • added imageTag to Viking.View helpers
  • added render to Viking.View helpers
  • FormBuilder.fieldsFor accepts a model, collection, or array of records
  • Viking.Controller now has controllerName

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