mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
e6988ef2ce
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5767 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
14 lines
299 B
Ruby
14 lines
299 B
Ruby
class BeastResource < ActiveResource::Base
|
|
self.site = 'http://beast.caboo.se'
|
|
site.user = 'foo'
|
|
site.password = 'bar'
|
|
end
|
|
|
|
class Forum < BeastResource
|
|
# taken from BeastResource
|
|
# self.site = 'http://beast.caboo.se'
|
|
end
|
|
|
|
class Topic < BeastResource
|
|
self.site += '/forums/:forum_id'
|
|
end
|