Releases: malomalo/viking
Releases · malomalo/viking
2.0.0-rc1
0.8.0
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
0.7.0
Major Changes:
- added
Viking.View.Helpers::mailTo
url helper Viking.Collection#order
now takes(order, options)
Viking.Collection#order
now callsViking.Collection#orderChanged
when changedViking.sync
added, converts objects via.toParam()
as opposed to letting jQuery use$.param()
Viking.Model
andViking.Collection
now useViking.sync
- global
urlFor
helper added Viking.View.Helpers.linkTo
helper addedViking.Model.coercions
now supportsArray
data types via options- Added
CheckBoxGroupBuilder
andViking.View.checkBoxGroup
- Added
FromBuilder#checkBoxGroup
helper
Minor Changes:
Viking.Coercions.Number.load
now coerces an empty string tonull
Bugfixes:
Viking.View.Helpers::labelTag
now accepts theescape
paramaterViking.View.Helpers::label
now accepts theescape
paramater
v0.6.0
Major Changes:
FormBuilder
no longer accepts content as an argumentFormBuilder#render
has been removedViking.Viking.Helpers.formFor
is now responsible for output theform
tags- Added
FormBuilder.fieldsFor
that acts similar to Rail's fields_for - Added array type coercion
- Added inital support for polymorphic belongsTo associations in
Viking.Model
Minor Changes:
Viking.Model#set
now changes the prototype of the model to type if type was passedViking.Model#set
initializes newhasMany
associations when set is called with new type- Added
Viking.View.Helpers.timeTag
- All form helpers allow the name to be passed in as an option to override the generated name
Viking.View.tagNameForModelAttribute
now accepts namespace as an option- setting
inheritanceAttribute = false
on a Model disableds STI - added
Viking.View.Helpers.numberField
andViking.View.Helpers.numberFieldTag
helpers - JSON data type coercions now allows the key
type
Bugfixes:
Router#start
now takesoptions
and passes them toBackbone.history.start
Model#paramRoot
returns thebaseModel.modelName
when used with STIArray.toParam
andArray.toQuery
no longer show up in array iterators- if default
type
set on an STI model, initializes with that model - Fixed issue when using STI and changing
type
themodelName
was not being updated