mumuki-laboratory 5.6.0 → 5.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/login_controller.rb +1 -1
- data/app/models/concerns/with_scoped_queries/sort.rb +1 -1
- data/db/migrate/20180702175220_add_upvotes_count_to_discussions.rb +1 -1
- data/lib/mumuki/laboratory/locales/en.yml +2 -2
- data/lib/mumuki/laboratory/locales/es.yml +2 -2
- data/lib/mumuki/laboratory/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8c5189b48ca183cc5e8a18e32bd521ef6fd8ec7c5c86b5dde80860b0f77bbabb
|
4
|
+
data.tar.gz: 9ca11265a9b2a7beaefd93eb596fc75a09ab47356c51558391a3a4e9043d2dd1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 975947dc234fcd2ee37bb8b08e487b2fcbf45b5d7a138af168df743e664d661869293b0ca30ac5481468bf5ea5d8ec35b05fe2190ce73906bc50512abd8e7f22
|
7
|
+
data.tar.gz: 71ce59ecee694bc8acde167cd33e4a15743eb1b970a0aa44d7fcf69e0694e20596a7c85fb43d5432108542035abe7a559f8b6e7f6dfad1a19e410c162d3e1a7d
|
@@ -27,7 +27,7 @@ module WithScopedQueries::Sort
|
|
27
27
|
|
28
28
|
def self.sort_method_for(klass, scope, field, direction)
|
29
29
|
if klass.column_names.include? field
|
30
|
-
scope.public_send(:
|
30
|
+
scope.public_send(:reorder, "#{klass.table_name}.#{field} #{direction}")
|
31
31
|
else
|
32
32
|
scope.public_send("order_by_#{field}", direction)
|
33
33
|
end
|
@@ -212,8 +212,8 @@ en:
|
|
212
212
|
upload_solution: Upload Solution
|
213
213
|
uploading_solution: "Uploading solution"
|
214
214
|
upvote: Upvote
|
215
|
-
|
216
|
-
|
215
|
+
upvotes_count_desc: Most voted
|
216
|
+
upvotes_count_asc: Least voted
|
217
217
|
user: User
|
218
218
|
user_data_updated: Your data was updated successfuly
|
219
219
|
username: Username
|
@@ -231,8 +231,8 @@ es:
|
|
231
231
|
upload_solution: "Subir solución"
|
232
232
|
uploading_solution: "Subiendo solución"
|
233
233
|
upvote: Es útil
|
234
|
-
|
235
|
-
|
234
|
+
upvotes_count_desc: Más útiles
|
235
|
+
upvotes_count_asc: Menos útiles
|
236
236
|
user_data_updated: Tus datos se actualizaron correctamente
|
237
237
|
user: Usuario
|
238
238
|
username: Nombre de usuario
|