Permalink
Browse files

Removed the monkey-patch to make state-args work in Rails <= 3.0.3. U…

…pgrade to +3.0.4.
  • Loading branch information...
1 parent 2f13e0c commit 3985e2f46bc921025f4704c0d0dade59042483f5 @apotonick apotonick committed Dec 21, 2011
Showing with 7 additions and 15 deletions.
  1. +7 −2 CHANGES.textile
  2. +0 −1 lib/cells.rb
  3. +0 −12 lib/cells/rails_compat.rb
View
@@ -1,9 +1,14 @@
-h2. 3.7.0
+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 constructor is now the 3rd argument.
+* New API for @Rails.create_cell_for@ and @Rails.render_cell_for@: the controller is now the 3rd argument.
* 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.
+
+h2. 3.7.1
+
+* Works with Rails 3.2, too. Hopefully.
h2. 3.7.0
View
@@ -83,5 +83,4 @@ def self.rails3_1_or_more?
require 'cell/rails'
require 'cells/railtie'
require 'cells/rails'
-require 'cells/rails_compat' # fixes a bug in Rails <3.0.4. # TODO: remove me as soon as we support 3.1, only.
require 'cell/deprecations'
View
@@ -1,12 +0,0 @@
-# TODO: remove me when Cells supports 3.1, only.
-if Rails::VERSION::MINOR == 0 and Rails::VERSION::TINY <= 3
- module AbstractController
- module Callbacks
- def process_action(method_name, *args) # Fixed in 3.0.4.
- run_callbacks(:process_action, method_name) do
- super
- end
- end
- end
- end
-end

0 comments on commit 3985e2f

Please sign in to comment.