lib/inherited_resources/base.rb in karsthammer-inherited_resources-1.1.2.1 vs lib/inherited_resources/base.rb in karsthammer-inherited_resources-1.2.1

- old
+ new

@@ -22,21 +22,22 @@ # Add at least :html mime type respond_to :html self.responder = InheritedResources::Responder - helper_method :collection_url, :collection_path, :resource_url, :resource_path, - :new_resource_url, :new_resource_path, :edit_resource_url, :edit_resource_path, - :parent_url, :parent_path, :resource, :collection, :resource_class, :association_chain, - :resource_instance_name, :resource_collection_name + helper_method :resource, :collection, :resource_class, :association_chain, + :resource_instance_name, :resource_collection_name, + :resource_url, :resource_path, + :collection_url, :collection_path, + :new_resource_url, :new_resource_path, + :edit_resource_url, :edit_resource_path, + :parent_url, :parent_path, + :smart_resource_url, :smart_collection_url - base.with_options :instance_writer => false do |c| - c.class_inheritable_accessor :resource_class - c.class_inheritable_array :parents_symbols - c.class_inheritable_hash :resources_configuration - end + self.class_attribute :resource_class, :parents_symbols, :resources_configuration, :instance_writer => false - protected :resource_class, :parents_symbols, :resources_configuration + protected :resource_class, :parents_symbols, :resources_configuration, + :resource_class?, :parents_symbols?, :resources_configuration? end end inherit_resources(self) end