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 +4 -0
- data/README +1 -1
- data/lib/inherited_resources/respond_to.rb +8 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
data/README
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2009-02-07 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|