integration_wrapper 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/integration_wrapper.rb +1 -1
- data/lib/integration_wrapper/base.rb +12 -1
- metadata +1 -1
data/lib/integration_wrapper.rb
CHANGED
@@ -36,7 +36,7 @@ module IntegrationWrapper
|
|
36
36
|
end
|
37
37
|
|
38
38
|
def self.modes
|
39
|
-
[
|
39
|
+
[MODE_ONLINE, MODE_OFFLINE]
|
40
40
|
end
|
41
41
|
|
42
42
|
################################################################################
|
@@ -66,5 +66,16 @@ module IntegrationWrapper
|
|
66
66
|
super
|
67
67
|
end
|
68
68
|
end
|
69
|
+
|
70
|
+
def log_enabled?
|
71
|
+
false
|
72
|
+
end
|
73
|
+
|
74
|
+
def log(message)
|
75
|
+
if log_enabled?
|
76
|
+
Rails.logger.info message
|
77
|
+
puts message
|
78
|
+
end
|
79
|
+
end
|
69
80
|
end
|
70
81
|
end
|