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 CHANGED
@@ -1,5 +1,8 @@
1
- # Version 0.2.2
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
@@ -1,6 +1,6 @@
1
1
  Inherited Resources
2
2
  License: MIT
3
- Version: 0.2.2
3
+ Version: 0.3
4
4
 
5
5
  You can also read this README in pretty html at the GitHub project Wiki page:
6
6
 
@@ -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
 
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.2
4
+ version: "0.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - "Jos\xC3\xA9 Valim"