humane-rails 2.8.0.0.1.1 → 2.8.0.0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,11 +1,14 @@
1
1
  module HumaneFlashMessagesHelper
2
2
  def humane_flash_messages
3
3
  content = ""
4
+ unless flash[:notice].blank?
5
+ content << javascript_tag("humane.info(\"#{flash[:notice]}\")")
6
+ end
4
7
  unless flash[:error].blank?
5
8
  content << javascript_tag("humane.error(\"#{flash[:error]}\")")
6
9
  end
7
- unless flash[:notice].blank?
8
- content << javascript_tag("humane.info(\"#{flash[:notice]}\")")
10
+ unless flash[:alert].blank?
11
+ content << javascript_tag("humane.error(\"#{flash[:alert]}\")")
9
12
  end
10
13
  content
11
14
  end
@@ -1,3 +1,3 @@
1
1
  module HumaneRails
2
- VERSION = "2.8.0.0.1.1"
2
+ VERSION = "2.8.0.0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: humane-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.8.0.0.1.1
4
+ version: 2.8.0.0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-22 00:00:00.000000000 Z
12
+ date: 2012-03-23 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: A gemified version of Marc Harter's humane-js.
15
15
  email:
@@ -48,7 +48,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
48
48
  version: '0'
49
49
  segments:
50
50
  - 0
51
- hash: -4419876461642728285
51
+ hash: -251889966483616607
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  none: false
54
54
  requirements:
@@ -57,7 +57,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
57
57
  version: '0'
58
58
  segments:
59
59
  - 0
60
- hash: -4419876461642728285
60
+ hash: -251889966483616607
61
61
  requirements: []
62
62
  rubyforge_project: humane-rails
63
63
  rubygems_version: 1.8.11