josevalim-inherited_resources 0.6.1 → 0.6.2
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +5 -3
- data/README +1 -1
- data/lib/inherited_resources/class_methods.rb +5 -1
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,9 +1,11 @@
|
|
1
1
|
# Version 0.6
|
2
2
|
|
3
|
+
* Stop rescueing any error when constantizing the resource class and allow
|
4
|
+
route_prefix to be nil.
|
3
5
|
* Cleaned up tests and responder structure. Whenever you pass a block to aliases
|
4
|
-
and this block responds to the request, the other blocks are not parsed
|
5
|
-
* [BACKWARDS INCOMPATIBLE] By default, Inherited Resources respond only :html requests
|
6
|
-
* Added a quick way to overwrite the redirect to url in :create, :update and :destroy
|
6
|
+
and this block responds to the request, the other blocks are not parsed improving performance.
|
7
|
+
* [BACKWARDS INCOMPATIBLE] By default, Inherited Resources respond only :html requests.
|
8
|
+
* Added a quick way to overwrite the redirect to url in :create, :update and :destroy.
|
7
9
|
|
8
10
|
# Version 0.5
|
9
11
|
|
data/README
CHANGED
@@ -392,7 +392,11 @@ module InheritedResources #:nodoc:
|
|
392
392
|
end
|
393
393
|
|
394
394
|
# Initialize resource class
|
395
|
-
base.resource_class =
|
395
|
+
base.resource_class = begin
|
396
|
+
base.controller_name.classify.constantize
|
397
|
+
rescue NameError
|
398
|
+
nil
|
399
|
+
end
|
396
400
|
|
397
401
|
# Initialize resources configuration hash
|
398
402
|
base.resources_configuration = {}
|
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.6.
|
4
|
+
version: 0.6.2
|
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-04-
|
12
|
+
date: 2009-04-19 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|