All Versions
59
Latest Version
Avg Release Cycle
42 days
Latest Release
-

Changelog History
Page 6

  • v3.6.0 Changes

    h3. Changes

    • Cells runs with Rails 3.0 and 3.1.
  • v3.5.6 Changes

    h3. Changes

    • Added a generator for slim. Use it with -e slim when generating.
  • v3.5.5 Changes

    ๐Ÿ›  h3. Bugfixes

    • The generator now places views of namespaced cells into the correct directory. E.g. rails g Blog::Post display puts views to app/cells/blog/post/display.html.erb.

    h3. Changes

  • v3.5.4 Changes

    ๐Ÿ›  h3. Bugfixes

    • state-args work even if your state method receives optional arguments or default values, like @def show(user, age=18)@.

    h3. Changes

    • Cell::Base.view_paths is now setup in an initializer. If you do scary stuff with view_paths this might lead to scary problems.
    • Cells::DEFAULT_VIEW_PATHS is now Cell::Base::DEFAULT_VIEW_PATHS. Note that Cells will set its view_paths to DEFAULT_VIEW_PATHS at initialization time. If you want to alter the view_paths, use Base.append_view_path and friends in a separate initializer.
  • v3.5.2 Changes

    ๐Ÿ›  h3. Bugfixes

    • Controller#render_cell now accepts multiple args as options.

    h3. Changes

    • Caching versioners now can accept state-args or options from the #render_cell call. This way, you don't have to access #options at all anymore.
  • v3.5.1 Changes

    • No longer pass an explicit Proc but a versioner block to @[email protected]. Example: @cache :show do "v1" [email protected]
    • Caching.cache_key_for now uses @ActiveSupport::[email protected]. Consequently, a key which used to be like @"cells/director/count/a=1/b=2"@ now is @cells/director/count/a=1&[email protected] and so on. Be warned that this might break your home-made cache expiry.
    • Controller#expire_cell_state now expects the cell class as first arg. Example: @expire_cell_state(DirectorCell, :count)@

    ๐Ÿ›  h3. Bugfixes

    • Passing options to @render :[email protected] in views finally works: @render({:state => :list_item}, item, i)@
  • v3.5.0 Changes

    h3. Changes

    • Deprecated @opts, use #options now.
    • Added state-args. State methods can now receive the options as method arguments. This should be the prefered way of parameter exchange with the outer world.
    • #params, #request, and #config is now delegated to @parent_controller.
    • The generator now is invoked as @rails g cell [email protected]
      • The --haml option is no longer available.
      • The -t option now is compatible with the rest of rails generators, now it is used as alias for --test-framework. Use the -e option as an alias of --template-engine Thanks to Jorge Calรกs Lozano [email protected] for patching this in the most reasonable manner i could imagine.
    • Privatized @#[email protected], @#[email protected], and all *ize methods in Cell::Rails.
    • New signature: @#render_view_for(state, *args)@
  • v3.4.4 Changes

    h3. Changes

  • v3.4.3 Changes

    h3. Changes

    • #render_cell now accepts a block which yields the cell instance before rendering.

    ๐Ÿ›  h3. Bugfixes

    • We no longer use TestTaskWithoutDescription in our rake tasks.