rails/activeresource — pull request #20 by aderyabin (2012-04-24 06:44:15+00:00)
Title: Rename known attributes

I suggest to use ```attributes_list``` instead of ```known_attributes``` but with support last using ```alias_method```.

Also I think that is more correct to see attributes defined in schema in ```attributes``` because for now:

```ruby
class Person < ActiveResource::Base
self.site = "http://37s.sunrise.i:3000"
end
new_schema = {'age' => 'integer', 'name' => 'string'}
Person.schema = new_schema
Person.new.attributes
=> {}
```

in my version it will be so:

```ruby
class Person < ActiveResource::Base
self.site = "http://37s.sunrise.i:3000"
end
new_schema = {'age' => 'integer', 'name' => 'string'}
Person.schema = new_schema
Person.new.attributes
=> {"age"=>nil, "name"=>nil}
```