ar_http_wrapper 0.0.6 → 0.0.7
Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ shared_examples "ActiveRecordApiWrapper" do |klass,mountpoint,api_version|
|
|
3
3
|
let(:mountpoint) {mountpoint}
|
4
4
|
let(:api_version) {api_version}
|
5
5
|
def subject_name
|
6
|
-
subject.to_s.underscore
|
6
|
+
subject.to_s.underscore.gsub('/','_').pluralize
|
7
7
|
end
|
8
8
|
def api_version_path
|
9
9
|
api_version ? api_version+'/' : ''
|