All Versions
59
Latest Version
Avg Release Cycle
42 days
Latest Release
-
Changelog History
Page 2
Changelog History
Page 2
-
v4.1.0.rc1
May 04, 2016 -
v4.0.5 Changes
April 19, 2016- ๐ Fix
Testing
so you can use Capybara matchers oncell(:song, collection: [..])
.
- ๐ Fix
-
v4.0.4 Changes
- ๐
Escaped::property
now properly escapes all passed properties. Thanks @xzo and @jlogsdon!
- ๐
-
v4.0.3 Changes
Cell::Partial
now does append the global partial path to itsview_paths
instead of usingunshift
and thereby removing possible custom paths.- โ Adding
Cell::Translation
which allows using the#t
helper. Thanks to @johnlane. - ๐ Performance improvement: when inflecting the view name (90% likely to be done) the
caller
is now limited to the data we need, saving memory. Thanks @timoschilling for implementing this. - In the
concept
helper, we no longer useclassify
, which means you can sayconcept("comment/data")
and it will instantiateComment::Data
and notComment::Datum
. Thanks @firedev!
-
v4.0.2 Changes
- ๐
In Rails, include
ActionView::Helpers::FormHelper
intoViewModel
so we already have (and pollute our cell with)UrlHelper
andFormTagHelper
. Helpers, so much fun. - Concept cells will now infer their name properly even if the string
Cell
appears twice.
- ๐
In Rails, include
-
v4.0.1 Changes
- ๐ Support forgery protection in
form_tag
.
- ๐ Support forgery protection in
-
v4.0.0 Changes
- ๐ Rails Support: Rails 4.0+ is fully supported, in older versions some form helpers do not work. Let us know how you fixed this.
- State args: View models don't use state args. Options are passed into the constructor and saved there. That means that caching callbacks no longer receive arguments as everything is available via the instance itself.
- ๐ง
ViewModel.new(song: song)
won't automatically create a reader#song
. You have to configure the cell to use a Struct twin {TODO: document} - HTML Escaping: Escaping only happens for defined
property
s whenEscaped
is included. - Template Engines: There's now one template engine (e.g. ERB or HAML) per cell class. It can be set by including the respective module (e.g.
Cell::Erb
) into the cell class. This happens automatically in Rails. - File Naming. The default filename just uses the engine suffix, e.g.
show.haml
. If you have two different engine formats (e.g.show.haml
andshow.erb
), use theformat:
option:render format: :erb
. If you need to render a specific mime type, provide the filename:render view: "show.html"
. - ๐ Builder blocks are no longer executed in controller context but in the context they were defined. This is to remove any dependencies to the controller. If you need e.g.
params
, pass them into the#cell(..)
call. - ๐ Builders are now defined using
::builds
, not::build
.
โ Removed
- ๐
Cell::Rails
andCell::Base
got removed. Every cell isViewModel
orConcept
now. - All methods from
AbstractController
are gone. This might give you trouble in case you were usinghelper_method
. You don't need this anymore - every method included in the cell class is a "helper" in the view (it's one and the same method call).
-
v4.0.0.rc2 Changes
- Include
#protect_from_forgery?
into Rails cells. It returns false currently. - ๐ Fix
Concept#cell
which now instantiates a cell, not a concept cell.
- Include
-
v4.0.0.rc1 Changes
- ๐ Move delegations of
#url_options
etc. to the railtie, which makes it work.
- ๐ Move delegations of
-
v4.0.0.beta6 Changes
- โ Removed
ViewModel::template_engine
. This is now done explicitly by includingCell::Erb
, etc. and happens automatically in a Rails environment.
- โ Removed