josevalim-inherited_resources 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ # Version 0.2.1
2
+
3
+ * Bug fix when ApplicationController is already loaded when we load respond_to.
4
+
1
5
  # Version 0.2.0
2
6
 
3
7
  * Added support success/failure blocks.
data/README CHANGED
@@ -1,6 +1,6 @@
1
1
  Inherited Resources
2
2
  License: MIT
3
- Version: 0.2.0
3
+ Version: 0.2.1
4
4
 
5
5
  You can also read this README in pretty html at the GitHub project Wiki page:
6
6
 
@@ -267,6 +267,14 @@ module ActionController #:nodoc:
267
267
  end
268
268
  end
269
269
 
270
+ # If ApplicationController is already defined around here, we should call
271
+ # inherited_with_inheritable_attributes to insert formats_for_respond_to.
272
+ # This usually happens only on Rails 2.3.
273
+ #
274
+ if defined?(ApplicationController)
275
+ self.send(:inherited_with_inheritable_attributes, ApplicationController)
276
+ end
277
+
270
278
  end
271
279
 
272
280
  module MimeResponds #:nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: josevalim-inherited_resources
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-06 00:00:00 -08:00
12
+ date: 2009-02-07 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15