sibu 0.8.2 → 0.8.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/concerns/sibu/user_concern.rb +2 -1
- data/lib/sibu/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: 7b2770373432dab6850c3180a56ebd42af66c248
|
4
|
+
data.tar.gz: 8dfa1d1647b7d938a798893e9c39d3a68d8cc39f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c67407583fd247daa99dfc66d450a07985601aa1d7f28f8ef1f6cef18e0729b5f5cdf57ceba2c8c6045ee7c111ed4e0e7c8f62aea06128f779aefa007feb610e
|
7
|
+
data.tar.gz: 7b9246e9424ece9f7555fa5f33af00cdb8181b2db2d649d11602080cd8c9431bdf92f8e48634c4cf3cfde22450805976dfaca5047ec8320fcb16588ac62fe74b
|
@@ -3,7 +3,8 @@ module Sibu
|
|
3
3
|
include ActiveSupport::Concern
|
4
4
|
|
5
5
|
def for_user(usr)
|
6
|
-
Rails.application.config.sibu[:multi_user] ? where(user_id: [nil, usr.id]) : all
|
6
|
+
entities = (Rails.application.config.sibu[:multi_user] ? where(user_id: [nil, usr.id]) : all)
|
7
|
+
entities.order(updated_at: :desc)
|
7
8
|
end
|
8
9
|
end
|
9
10
|
end
|
data/lib/sibu/version.rb
CHANGED