humane-rails 2.7.1.0.1.0 → 2.7.1.0.1.1

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.
@@ -0,0 +1,12 @@
1
+ module HumaneFlashMessagesHelper
2
+ def humane_flash_messages
3
+ content = ""
4
+ unless flash[:error].blank?
5
+ content << javascript_tag("humane.error(\"#{flash[:error]}\")")
6
+ end
7
+ unless flash[:notice].blank?
8
+ content << javascript_tag("humane.info(\"#{flash[:notice]}\")")
9
+ end
10
+ content
11
+ end
12
+ end
@@ -1,3 +1,3 @@
1
1
  module HumaneRails
2
- VERSION = "2.7.1.0.1.0"
2
+ VERSION = "2.7.1.0.1.1"
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.7.1.0.1.0
4
+ version: 2.7.1.0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -22,6 +22,7 @@ files:
22
22
  - Gemfile
23
23
  - README.md
24
24
  - Rakefile
25
+ - app/helpers/humane_flash_messages_helper.rb
25
26
  - humane-rails.gemspec
26
27
  - lib/humane-rails.rb
27
28
  - lib/humane-rails/engine.rb