dismissible_helpers 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
@@ -13,7 +13,7 @@ module DismissibleHelpers::Helpers::DismissibleHelpers
|
|
13
13
|
private
|
14
14
|
|
15
15
|
def has_been_dismissed?(name)
|
16
|
-
if respond_to?(:
|
16
|
+
if respond_to?(:current_user) && current_user && current_user.respond_to?(:dismissed_helpers)
|
17
17
|
dismissed_helpers = current_user.dismissed_helpers
|
18
18
|
else
|
19
19
|
if cookies[:dismissed_helpers].present?
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dismissible_helpers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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: 2013-01-
|
12
|
+
date: 2013-01-10 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
@@ -297,7 +297,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
297
297
|
version: '0'
|
298
298
|
segments:
|
299
299
|
- 0
|
300
|
-
hash:
|
300
|
+
hash: 3152705794345596771
|
301
301
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
302
302
|
none: false
|
303
303
|
requirements:
|
@@ -306,7 +306,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
306
306
|
version: '0'
|
307
307
|
segments:
|
308
308
|
- 0
|
309
|
-
hash:
|
309
|
+
hash: 3152705794345596771
|
310
310
|
requirements: []
|
311
311
|
rubyforge_project:
|
312
312
|
rubygems_version: 1.8.23
|