diff options
Diffstat (limited to 'app/models/reserved_username.rb')
-rw-r--r-- | app/models/reserved_username.rb | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/models/reserved_username.rb b/app/models/reserved_username.rb new file mode 100644 index 0000000..899b319 --- /dev/null +++ b/app/models/reserved_username.rb @@ -0,0 +1,15 @@ +require 'active_resource' + +class ReservedUsername < ActiveResource::Base + self.include_root_in_json = false + + self.site = "%s://%s:%s@%s:%s" % [ + ReserveUsernames::CONFIG['api_proto'], + ReserveUsernames::CONFIG['api_username'], + ReserveUsernames::CONFIG['api_password'], + ReserveUsernames::CONFIG['api_host'], + ReserveUsernames::CONFIG['api_port'] + ] + self.element_name = ReserveUsernames::CONFIG['api_path'] + +end |