flyer 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/flyer/controller_additions.rb +4 -2
- data/lib/flyer/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: eeec6b86f603cedcb3ecbf34991781cb73df1728
|
4
|
+
data.tar.gz: 747c55c276a9cb1220f1e8bc68dc051ac2129f5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b5038f3bfdd2a46c0fd351c2314a8bcd0c7d2b26f6d304ab7a8cd8e3e02947d195dcbdb212381b8ebb96cffe9a6d8fad6ca7a50baf4c6349ecfecb176c3069ba
|
7
|
+
data.tar.gz: c4807f3126bc4262d2b0c843dba5143e7dac52066676a64ff9c20b21c6f5a026dd46f5e65ac3cbf999f884d68f8844d9c5076d99a7f4e5e2c624349192593d7d
|
@@ -8,13 +8,15 @@ module Flyer::ControllerAdditions
|
|
8
8
|
Flyer::Notification.notifications.count
|
9
9
|
|
10
10
|
found_notifications = []
|
11
|
-
|
11
|
+
count = 0
|
12
|
+
Flyer::Notification.notifications.each do |n|
|
12
13
|
notification = Flyer::Notification.new(self)
|
13
14
|
n.call(notification)
|
14
15
|
notification.validate!
|
15
|
-
if notification.visible? and
|
16
|
+
if notification.visible? and count < limit
|
16
17
|
notification.used!
|
17
18
|
found_notifications << notification.view
|
19
|
+
count += 1
|
18
20
|
end
|
19
21
|
end
|
20
22
|
|
data/lib/flyer/version.rb
CHANGED