ishapi 0.1.8.182 → 0.1.8.185

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: d463a329bf3e455dd44020f402062b623d7dbf9a832d30e84c73792d2afee35d
4
- data.tar.gz: 6090044a2ebccee0ae47e4e908a652998163385e18cbfd26451e8ec0f0aa0889
3
+ metadata.gz: f75d6770dc7f44262a3de2a966f74763f1c59ea097b44dd44a7c5f8f3feed540
4
+ data.tar.gz: 43a1a061b6dfa79af8721bb168161e81987e002138499678492eccebf20dd572
5
5
  SHA512:
6
- metadata.gz: 6e0fe6f94cb204b9464d7c48d19a243cd13329ee7c4c076d0deae8db0622d3f7d86d1be643c0cec5d710da3fa4015843a583c246e1c1a8f61149b758f5e1ce55
7
- data.tar.gz: d70c30f52193fc1db730dae238217c1b651db64b17aea8257968f1ece64e3534f8710528b6c0940db7ee044c0a053bc29c491ed6ee7410a4c13fa61e8ae81af0
6
+ metadata.gz: ac48c01c6a74af75df4d1073f8f403d96491f597f25549fe021ce51fead139406bc315d0e18d1f3bf5edc4d531b380ca893b111bae51af8f20291cf851f6c556
7
+ data.tar.gz: 78a4787442c9911387f4f0a032a635cc0f88407aa0bd82eee0af44a41c15bc368e0598022d795585883d1d27457260725bf09b82400113d57cf1c5ad0285ebf4
@@ -34,7 +34,11 @@ class Ishapi::ApplicationController < ActionController::Base
34
34
 
35
35
  ## @TODO: implement completely! _vp_ 2022-08-24
36
36
  def vote
37
+
37
38
  votee = params[:votee_class_name].constantize.find(params[:votee_id])
39
+
40
+ authorize! :open_permission, Ishapi # @TODO: make this more rigid
41
+
38
42
  out = votee.vote(voter_id: params[:voter_id], value: params[:value].to_sym)
39
43
 
40
44
  if out
@@ -2,12 +2,12 @@
2
2
  # ishapi / maps / show
3
3
  #
4
4
 
5
- this_key = [
6
- @map.id, @map.updated_at,
7
- current_user&.profile&.updated_at,
8
- params.permit!
9
- ]
10
- json.cache! this_key do
5
+ # this_key = [
6
+ # @map.id, @map.updated_at,
7
+ # current_user&.profile&.updated_at,
8
+ # params.permit!
9
+ # ]
10
+ # json.cache! this_key do
11
11
  json.map do
12
12
  json.id @map.id.to_s
13
13
  json.slug @map.slug
@@ -59,6 +59,6 @@ json.cache! this_key do
59
59
  end
60
60
 
61
61
  end
62
- end
62
+ # end
63
63
 
64
64
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ishapi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.8.182
4
+ version: 0.1.8.185
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox