cowtech-rails 1.7.7.0 → 1.7.8.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -29,21 +29,17 @@ module Cowtech
29
29
  end
30
30
  end
31
31
 
32
+ def google_font_stylesheet(font)
33
+ tag('link', {:rel => :stylesheet, :type => Mime::CSS, :href => "http://fonts.googleapis.com/css?family=#{font}"}, false, false)
34
+ end
35
+
32
36
  def get_data(key = nil, default = "")
33
- rv = nil
34
-
35
- begin
36
- rv = @controller_data[key]
37
- rescue
38
- rv = default
39
- end
40
-
41
- rv
37
+ @controller_data.is_a?(Hash) ? @controller_data.fetch(key.to_sym, default) : default
42
38
  end
43
39
 
44
40
  def set_data(key, value)
45
41
  @controller_data = {} unless defined?(@controller_data) && @controller_data.is_a?(Hash)
46
- @controller_data[key] = value
42
+ @controller_data[key.to_sym] = value
47
43
  end
48
44
 
49
45
  def get_param(key, default = nil)
@@ -9,7 +9,7 @@ module Cowtech
9
9
  module Version
10
10
  MAJOR = 1
11
11
  MINOR = 7
12
- PATCH = 7
12
+ PATCH = 8
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.7.0
4
+ version: 1.7.8.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: