mumuki-laboratory 5.8.0 → 5.8.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ca436cc42496e79bddfaff35a982a8f86dfbac83a5899152e6870526e8319eb
4
- data.tar.gz: 60d05b8275511ab5f817fb6a2d6c10e756a7d362d9937ea071345262d4a088ee
3
+ metadata.gz: 87600d3445c8ae5dbea2faf628e69b2a638fcdd826e8e8aaa051fb2bd3926a18
4
+ data.tar.gz: 10ba9a35ee5077f52af13797f42029f374d1495218708c8b55255a92ee3b886a
5
5
  SHA512:
6
- metadata.gz: 688fd91f7f9ffa2534d164742bb32bdf595ccd9e70638b9e84ba8011b0f5deced7b4154a699788b905577e45d33e4f0af3e53f8945dc3f69296e2545a0fb18e6
7
- data.tar.gz: 4a6795662d811fc676d3ea281a6862dd1a4c811bd5255bf97f76ef008ddf341af011f30077ca3eab2b8c38f35359a3ef56ae992571350bba80f276a3a27393b5
6
+ metadata.gz: 1e2051b926a10132b983dcc66382d7ee4615c3d88a1e30921bf25ab7283548428e5adc7833641aa413034db29f74fb3c7d64c4caaf69b2ab12441950f2d8e12b
7
+ data.tar.gz: ef2059b7ebb09484296395183f2bf3b7b866a79ce794a776dd8b8e517db2da9545b4a3b92ca504682b5f38a9e66854cc76f21a9bb8b964748c7129889c841b03
@@ -1,6 +1,6 @@
1
1
  class DiscussionsMessagesController < AjaxController
2
2
  before_action :set_discussion!, only: [:create, :destroy]
3
- before_action :authorize!, only: [:destroy, :approve]
3
+ before_action :authorize_user!, only: [:destroy, :approve]
4
4
 
5
5
  def create
6
6
  @discussion.submit_message! message_params, current_user
@@ -23,7 +23,7 @@ class DiscussionsMessagesController < AjaxController
23
23
  @discussion ||= Discussion.find_by(id: params[:discussion_id])
24
24
  end
25
25
 
26
- def authorize!
26
+ def authorize_user!
27
27
  current_message.authorize! current_user
28
28
  end
29
29
 
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '5.8.0'
3
+ VERSION = '5.8.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.8.0
4
+ version: 5.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli