josevalim-inherited_resources 0.2.2 → 0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG +4 -1
- data/README +1 -1
- data/lib/inherited_resources/base.rb +3 -1
- data/lib/inherited_resources/class_methods.rb +1 -1
- metadata +1 -1
data/CHANGELOG
CHANGED
@@ -1,5 +1,8 @@
|
|
1
|
-
# Version 0.
|
1
|
+
# Version 0.3
|
2
2
|
|
3
|
+
* Minor bump after three bug fixes.
|
4
|
+
* Bug fix when showing warning of constant redefinition.
|
5
|
+
* Bug fix with ApplicationController not being unloaded properly on development.
|
3
6
|
* Bug fix when having root singleton resources. Calling collection_url would
|
4
7
|
raise "NoMethodError _url", not it will call root_url.
|
5
8
|
* More comments on UrlHelpers.
|
data/README
CHANGED
@@ -170,9 +170,11 @@ require File.dirname(__FILE__) + '/singleton_helpers.rb'
|
|
170
170
|
require File.dirname(__FILE__) + '/url_helpers.rb'
|
171
171
|
|
172
172
|
module InheritedResources
|
173
|
-
RESOURCES_ACTIONS = [ :index, :show, :new, :edit, :create, :update, :destroy ]
|
173
|
+
RESOURCES_ACTIONS = [ :index, :show, :new, :edit, :create, :update, :destroy ] unless self.const_defined? "RESOURCES_ACTIONS"
|
174
174
|
|
175
175
|
class Base < ::ApplicationController
|
176
|
+
unloadable
|
177
|
+
|
176
178
|
include InheritedResources::BaseHelpers
|
177
179
|
extend InheritedResources::BelongsTo
|
178
180
|
extend InheritedResources::ClassMethods
|
@@ -33,7 +33,7 @@
|
|
33
33
|
# When you have a singleton controller, the action index is removed.
|
34
34
|
#
|
35
35
|
module InheritedResources #:nodoc:
|
36
|
-
RESOURCES_CLASS_ACCESSORS = [ :resource_class, :resources_configuration, :parents_symbols, :singleton, :polymorphic_symbols ]
|
36
|
+
RESOURCES_CLASS_ACCESSORS = [ :resource_class, :resources_configuration, :parents_symbols, :singleton, :polymorphic_symbols ] unless self.const_defined? "RESOURCES_CLASS_ACCESSORS"
|
37
37
|
|
38
38
|
module ClassMethods #:nodoc:
|
39
39
|
|