cobot_client 1.2.4 → 1.3.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,29 +0,0 @@
1
- module CobotClient
2
- module XdmHelper
3
- def self.included(base)
4
- if base.ancestors.include?(ActionController::Base)
5
- base.class_eval do
6
- before_filter :capture_xdm_params
7
- helper_method :xdm_params
8
- end
9
- end
10
- end
11
-
12
- def xdm_params
13
- session.to_hash.reduce({}) do |hash, element|
14
- if element.first.match(/xdm\_/)
15
- hash[element.first] = element.last
16
- end
17
- hash
18
- end
19
- end
20
-
21
- def capture_xdm_params
22
- params.each do |key, value|
23
- if key.match(/xdm\_/)
24
- session[key] = value
25
- end
26
- end
27
- end
28
- end
29
- end