Permalink
Browse files

Remove ActiveResource::Struct because it hasn't proven very useful. C…

…reating a new ActiveResource::Base subclass is often less code and always clearer. Closes #8612.

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6980 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 160af19 commit fde3d9d8e432b0834d03888ff6e180359e038391 @jeremy jeremy committed Jun 9, 2007
Showing with 2 additions and 17 deletions.
  1. +2 −0 activeresource/CHANGELOG
  2. +0 −1 activeresource/lib/active_resource.rb
  3. +0 −16 activeresource/lib/active_resource/struct.rb
@@ -1,5 +1,7 @@
*SVN*
+* Remove ActiveResource::Struct because it hasn't proven very useful. Creating a new ActiveResource::Base subclass is often less code and always clearer. #8612 [Josh Peek]
+
* Fix query methods on resources. [Cody Fauser]
* pass the prefix_options to the instantiated record when using find without a specific id. Closes #8544 [alloy]
@@ -35,7 +35,6 @@
end
require 'active_resource/base'
-require 'active_resource/struct'
require 'active_resource/validations'
require 'active_resource/custom_methods'
@@ -1,16 +0,0 @@
-module ActiveResource
- # Class that allows a connection to a remote resource.
- # Person = ActiveResource::Struct.new do |p|
- # p.uri "http://www.mypeople.com/people"
- # p.credentials :username => "mycreds", :password => "wordofpassage"
- # end
- #
- # person = Person.find(1)
- # person.name = "David"
- # person.save!
- class Struct
- def self.create
- Class.new(Base)
- end
- end
-end

0 comments on commit fde3d9d

Please sign in to comment.