nagira_active_resource 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,9 @@ module NagiraActiveResource
|
|
5
5
|
#
|
6
6
|
class Base < ActiveResource::Base
|
7
7
|
|
8
|
-
|
8
|
+
|
9
|
+
@@logger = Logger.new(STDOUT)
|
10
|
+
|
9
11
|
##
|
10
12
|
# Return all objects as Hash
|
11
13
|
#
|
@@ -15,7 +17,7 @@ module NagiraActiveResource
|
|
15
17
|
begin
|
16
18
|
self.all(args).map &:attributes
|
17
19
|
rescue NoMethodError => e
|
18
|
-
logger.warn "Search did not return any results: #{args}, #{caller[0]}"
|
20
|
+
@@logger.warn "Search did not return any results: #{args}, #{caller[0]}"
|
19
21
|
{ }
|
20
22
|
end
|
21
23
|
end
|