cowtech-rails 1.7.6.0 → 1.7.7.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -30,15 +30,22 @@ module Cowtech
30
30
  end
31
31
 
32
32
  def get_data(key = nil, default = "")
33
- rv = default
34
-
35
- unless @outputdata.nil? then
36
- rv = @outputdata[key] unless @outputdata[key].nil?
33
+ rv = nil
34
+
35
+ begin
36
+ rv = @controller_data[key]
37
+ rescue
38
+ rv = default
37
39
  end
38
40
 
39
41
  rv
40
42
  end
41
43
 
44
+ def set_data(key, value)
45
+ @controller_data = {} unless defined?(@controller_data) && @controller_data.is_a?(Hash)
46
+ @controller_data[key] = value
47
+ end
48
+
42
49
  def get_param(key, default = nil)
43
50
  if params[key].blank? then default else params[key] end
44
51
  end
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 7
12
- PATCH = 6
12
+ PATCH = 7
13
13
  BUILD = 0
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.6.0
4
+ version: 1.7.7.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: