ish_manager 0.1.8.3 → 0.1.8.4
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
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 13d6f7e70c4393850364fcb8932dac2bb25674ba
|
|
4
|
+
data.tar.gz: c04ab0fc5daea2c88169bc57e4b2f9e1470b160c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: dd7d0198f0a3df320cff731ac7971949a1b99cd1ac6a81a76458a62f0ac6b0c388a46f56143b6b1fa67970e4a38f84834e43e1cba55795f919b3f8568f48d7e2
|
|
7
|
+
data.tar.gz: 0f66517ed6cb5c8c3e2adccfd23f66b831aa3b5dbe3f0a89f789a55078d03e167ec9b5de580091285e544d24d056c5a2a9e2deeebe0cf8face1e1df49a94bf5a
|
|
@@ -34,7 +34,11 @@ class IshManager::PhotosController < IshManager::ApplicationController
|
|
|
34
34
|
gallery ||= Gallery.find( params[:gallery_id] )
|
|
35
35
|
@photo.gallery_id = gallery.id
|
|
36
36
|
end
|
|
37
|
-
|
|
37
|
+
|
|
38
|
+
# cache
|
|
39
|
+
@photo.gallery.site.touch if @photo.gallery.site
|
|
40
|
+
@photo.gallery.city.touch if @photo.gallery.city
|
|
41
|
+
|
|
38
42
|
if @photo.save
|
|
39
43
|
j = { :name => @photo.photo.original_filename,
|
|
40
44
|
:size => @photo.photo.size,
|
|
@@ -11,6 +11,7 @@ class IshManager::Ability
|
|
|
11
11
|
|
|
12
12
|
if user.profile && user.profile.manager?
|
|
13
13
|
can :manage, :all
|
|
14
|
+
can [ :home ], Manager
|
|
14
15
|
end
|
|
15
16
|
|
|
16
17
|
can [ :show ], Gallery do |gallery|
|
|
@@ -18,7 +19,7 @@ class IshManager::Ability
|
|
|
18
19
|
end
|
|
19
20
|
|
|
20
21
|
end
|
|
21
|
-
user ||= User.new
|
|
22
|
+
user ||= ::User.new
|
|
22
23
|
|
|
23
24
|
can [ :read ], Gallery do |gallery|
|
|
24
25
|
gallery.is_public
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: ish_manager
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.8.
|
|
4
|
+
version: 0.1.8.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- piousbox
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-05-
|
|
11
|
+
date: 2017-05-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|