humane-rails 2.7.1.0.1.0 → 2.7.1.0.1.1
Sign up to get free protection for your applications and to get access to all the features.
@@ -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
|
data/lib/humane-rails/version.rb
CHANGED
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.
|
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
|