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 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 improcing performance.
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
@@ -1,6 +1,6 @@
1
1
  Inherited Resources
2
2
  License: MIT
3
- Version: 0.6.0
3
+ Version: 0.6.2
4
4
 
5
5
  You can also read this README in pretty html at the GitHub project Wiki page:
6
6
 
@@ -392,7 +392,11 @@ module InheritedResources #:nodoc:
392
392
  end
393
393
 
394
394
  # Initialize resource class
395
- base.resource_class = base.controller_name.classify.constantize rescue nil
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.1
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-05 00:00:00 -07:00
12
+ date: 2009-04-19 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15