i18n_viz 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/i18n_viz/view_helpers.rb +1 -1
  2. metadata +3 -3
@@ -19,7 +19,7 @@ module I18nViz
19
19
  end
20
20
 
21
21
  def display_i18n_viz?
22
- I18nViz.enabled? && defined?(params) && defined?(params[:i18n_viz])
22
+ I18nViz.enabled? && params && params[:i18n_viz] rescue false # rescue workaround, because params is weirdly defined in e.g. ActionMailer
23
23
  end
24
24
 
25
25
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n_viz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -57,7 +57,7 @@ files:
57
57
  - test/dummy/public/404.html
58
58
  - test/dummy/public/favicon.ico
59
59
  - test/dummy/public/422.html
60
- homepage:
60
+ homepage: https://github.com/jhilden/i18n_viz
61
61
  licenses: []
62
62
  post_install_message:
63
63
  rdoc_options: []
@@ -71,7 +71,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
71
71
  version: '0'
72
72
  segments:
73
73
  - 0
74
- hash: 3338162821862397962
74
+ hash: -3493511770679341727
75
75
  required_rubygems_version: !ruby/object:Gem::Requirement
76
76
  none: false
77
77
  requirements: