def self.included(base)
      base.class_eval do
        extend ActiveResource::CustomMethods::ClassMethods
        include ActiveResource::CustomMethods::InstanceMethods
        class << self
          alias :orig_delete :delete
          
          
          
          
          
          
          
          
          
          
          
          
          
          
          def get(custom_method_name, options = {})
            connection.get(custom_method_collection_url(custom_method_name, options), headers)
          end
          def post(custom_method_name, options = {}, body = '')
            connection.post(custom_method_collection_url(custom_method_name, options), body, headers)
          end
          def put(custom_method_name, options = {}, body = '')
            connection.put(custom_method_collection_url(custom_method_name, options), body, headers)
          end
          def delete(custom_method_name, options = {})
            
            if custom_method_name.is_a?(Symbol)
              connection.delete(custom_method_collection_url(custom_method_name, options), headers)
            else
              orig_delete(custom_method_name, options)
            end
          end
        end
      end
    end