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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 972a81a3d6c209e33e8fd575a495e80b2ad1ba83
4
- data.tar.gz: 32ecacfe780b392d088cc0cc43661d0d4e3b5e08
3
+ metadata.gz: 7b2770373432dab6850c3180a56ebd42af66c248
4
+ data.tar.gz: 8dfa1d1647b7d938a798893e9c39d3a68d8cc39f
5
5
  SHA512:
6
- metadata.gz: fe7c3b73deb7ddfcd22b1ede96d337fdac0a0ab7ee1e2a99204c91ed700c27a35aacf99118085fe7a196c8e6051ffc95ac70f33165881442bca398c75d98c7f7
7
- data.tar.gz: ce5c7d3290e12f7eae9116e23e9ab622cb40af747dc0976806ca09f0d637d66f66b664262265066de64d30816b3b0f73edba1f57ea1408fa163513cde2f7398c
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
@@ -1,3 +1,3 @@
1
1
  module Sibu
2
- VERSION = '0.8.2'
2
+ VERSION = '0.8.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sibu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.2
4
+ version: 0.8.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean-Baptiste Vilain