lib/make_restful.rb in make_restful-0.1.1 vs lib/make_restful.rb in make_restful-0.1.2

- old
+ new

@@ -3,11 +3,10 @@ module MakeRestful extend ActiveSupport::Concern extend ActiveSupport::Autoload autoload :ClassMethods - autoload :ControllerAdditions autoload :Loaders autoload :RestMethods autoload :Rendering autoload :Specification @@ -22,12 +21,12 @@ class_attribute :allowed_methods, :allowed_formats, :finder, :pagination, :resource_class attr_reader :resource, :instance, :collection resource name.underscore.gsub(/(.*)_controller/,'\1').singularize - allow_formats :json, :jsonp, :xml - allow_methods :index, :get, :put, :post, :delete - find_by :id + self.allowed_formats = [:json, :jsonp, :xml] + self.allowed_methods = [:index, :get, :put, :post, :delete] + self.finder = :id end private \ No newline at end of file