lib/api_client/resource/base.rb in api_client-0.5.1 vs lib/api_client/resource/base.rb in api_client-0.5.2
- old
+ new
@@ -16,10 +16,10 @@
super
small_name = NameResolver.resolve(subclass.name)
subclass.namespace small_name
subclass.prefix self.prefix
subclass.always do
- name = subclass.name.split('::').last.downcase
+ name = small_name
pre_fix = prefix
path ["", prefix, "#{name}s"].compact.join('/')
end
end