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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 725657dbab5f674de31aa11fb8636bd7f4077b015d0029ee36c264f302592eb8
4
- data.tar.gz: 28e5841b4a4d81abc05a288061a18969f53c544f91c771a30d6464d598869d6d
3
+ metadata.gz: 8c5189b48ca183cc5e8a18e32bd521ef6fd8ec7c5c86b5dde80860b0f77bbabb
4
+ data.tar.gz: 9ca11265a9b2a7beaefd93eb596fc75a09ab47356c51558391a3a4e9043d2dd1
5
5
  SHA512:
6
- metadata.gz: 8e55a4187adfb14ab2dd6ca45cfc9d564d8b94766af2e5dd502101f48e13073fca72afe65108536fb4f5fb879c864cdd445593fbbefe48be99f8831d5b33a75f
7
- data.tar.gz: a91cdd87b7c2d852ee3d7aa54d7195b2541fca34526339e1eedf17f742246fedf15bf5500e51511415c669aa657e7029cdba360fc55bf138d687aacf4f324779
6
+ metadata.gz: 975947dc234fcd2ee37bb8b08e487b2fcbf45b5d7a138af168df743e664d661869293b0ca30ac5481468bf5ea5d8ec35b05fe2190ce73906bc50512abd8e7f22
7
+ data.tar.gz: 71ce59ecee694bc8acde167cd33e4a15743eb1b970a0aa44d7fcf69e0694e20596a7c85fb43d5432108542035abe7a559f8b6e7f6dfad1a19e410c162d3e1a7d
@@ -4,6 +4,6 @@ class LoginController < ApplicationController
4
4
  private
5
5
 
6
6
  def login_failure!
7
- @error_msg = request.params['message']
7
+ redirect_to root_path, alert: request.params['message']
8
8
  end
9
9
  end
@@ -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(:order, "#{klass.table_name}.#{field} #{direction}")
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
@@ -1,5 +1,5 @@
1
1
  class AddUpvotesCountToDiscussions < ActiveRecord::Migration[5.1]
2
2
  def change
3
- add_column :discussions, :upvotes_count, :integer
3
+ add_column :discussions, :upvotes_count, :integer, default: 0
4
4
  end
5
5
  end
@@ -212,8 +212,8 @@ en:
212
212
  upload_solution: Upload Solution
213
213
  uploading_solution: "Uploading solution"
214
214
  upvote: Upvote
215
- upvotes_count_asc: Most voted
216
- upvotes_count_desc: Least voted
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
- upvotes_count_asc: Más útiles
235
- upvotes_count_desc: Menos útiles
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
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '5.6.0'
3
+ VERSION = '5.6.1'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.6.0
4
+ version: 5.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli