All Versions
Latest Version
Avg Release Cycle
42 days
Latest Release

Changelog History
Page 2

  • v4.1.0.rc1

    May 04, 2016
  • v4.0.5

    April 19, 2016
    • ๐Ÿ›  Fix Testing so you can use Capybara matchers on cell(:song, collection: [..]).
  • v4.0.4

    • ๐Ÿ”Š Escaped::property now properly escapes all passed properties. Thanks @xzo and @jlogsdon!
  • v4.0.3

    • Cell::Partial now does append the global partial path to its view_paths instead of using unshift 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 use classify, which means you can say concept("comment/data") and it will instantiate Comment::Data and not Comment::Datum. Thanks @firedev!
  • v4.0.2

    • ๐Ÿš… In Rails, include ActionView::Helpers::FormHelper into ViewModel so we already have (and pollute our cell with) UrlHelper and FormTagHelper. Helpers, so much fun.
    • Concept cells will now infer their name properly even if the string Cell appears twice.
  • v4.0.1

    • ๐Ÿ‘Œ Support forgery protection in form_tag.
  • v4.0.0

    • ๐Ÿš… 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.
    • ๐Ÿ”ง 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 propertys when Escaped 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 and show.erb), use the format: 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 and Cell::Base got removed. Every cell is ViewModel or Concept now.
    • All methods from AbstractController are gone. This might give you trouble in case you were using helper_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

    • Include #protect_from_forgery? into Rails cells. It returns false currently.
    • ๐Ÿ›  Fix Concept#cell which now instantiates a cell, not a concept cell.
  • v4.0.0.rc1

    • ๐Ÿšš Move delegations of #url_options etc. to the railtie, which makes it work.
  • v4.0.0.beta6

    • โœ‚ Removed ViewModel::template_engine. This is now done explicitly by including Cell::Erb, etc. and happens automatically in a Rails environment.