lib/inherited_resources/base.rb in karsthammer-inherited_resources-1.2.2 vs lib/inherited_resources/base.rb in karsthammer-inherited_resources-1.2.2.1
- old
+ new
@@ -37,9 +37,14 @@
protected :resource_class, :parents_symbols, :resources_configuration,
:resource_class?, :parents_symbols?, :resources_configuration?
end
end
+
+ def self.inherited(klass)
+ super
+ klass.helper :all if klass.superclass == InheritedResources::Base
+ end
inherit_resources(self)
end
end