Skip to content

Commit

Permalink
CHANGES update.
Browse files Browse the repository at this point in the history
  • Loading branch information
apotonick committed Dec 21, 2011
1 parent bc58e3b commit 1720437
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 3 additions & 1 deletion CHANGES.textile
@@ -1,7 +1,9 @@
h2. 3.8.0

* @Cell::Base@ got rid of the controller dependency. If you want the @ActionController@ instance around in your cell, use @Cell::Rails@ - this should be the default in a standard Rails setup. However, if you plan on using a Cell in a Rack middleware or don't need the controller, use @Cell::Base@.
* New API for @Rails.create_cell_for@ and @Rails.render_cell_for@: the controller is now the 3rd argument.
* New API (note that `controller` isn't the first argument anymore):
* @Rails.create_cell_for(name, controller)@
* @Rails.render_cell_for(name, state, controller, *args)@
* Moved builder methods to @Cell::Builder@ module.
* @DEFAULT_VIEW_PATHS@ is now in @Cell::Base@.
* Removed the monkey-patch to make state-args work in Rails <= 3.0.3. Upgrade to +3.0.4.
Expand Down
3 changes: 2 additions & 1 deletion lib/cell/deprecations.rb
@@ -1,5 +1,6 @@
module Cell
# Makes #options available in Cells 3.7, which was removed in favor of state-args.
# Note that Deprecations are only available for Cell::Rails.
module Deprecations
extend ActiveSupport::Concern

Expand All @@ -18,7 +19,7 @@ def build_for(controller, *args)

module InstanceMethods
def initialize(parent_controller, *args)
super(parent_controller) # the real Base.new.
super(parent_controller) # the real Rails.new.
setup_backwardibility(*args)
end

Expand Down
1 change: 0 additions & 1 deletion test/cell_module_test.rb
Expand Up @@ -42,7 +42,6 @@ def default_url_options
end



class CellModuleTest < ActiveSupport::TestCase
include Cell::TestCase::TestMethods
context "Cell::Rails" do
Expand Down

0 comments on commit 1720437

Please sign in to comment.