reviewed 0.1.23 → 0.1.24
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/reviewed/request.rb +3 -3
- data/lib/reviewed/version.rb +1 -1
- metadata +1 -1
data/lib/reviewed/request.rb
CHANGED
@@ -4,11 +4,11 @@ module Reviewed
|
|
4
4
|
attr_reader :path
|
5
5
|
|
6
6
|
def initialize(opts={})
|
7
|
-
if opts[:resource].kind_of?(
|
8
|
-
@path = opts[:resource]
|
9
|
-
else
|
7
|
+
if opts[:resource].kind_of?(Class)
|
10
8
|
@resource = opts[:resource]
|
11
9
|
@path = @resource.path
|
10
|
+
else
|
11
|
+
@path = opts[:resource].to_s
|
12
12
|
end
|
13
13
|
|
14
14
|
@client = opts[:client] || Reviewed::Client.new
|
data/lib/reviewed/version.rb
CHANGED