ishapi 0.1.8.6 → 0.1.8.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/ishapi/ability.rb +5 -2
- data/app/views/ishapi/newsitems/_index.jbuilder +6 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9535b2e08189324706e530ee645c4dbcd03d01a4
|
4
|
+
data.tar.gz: 08b6fb12b42b5681130036f32b97847aeb5e4500
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 790d5dc5eeae9083088a9bdf05bb7a353cdbf39b512887c1d0e2a0f956d19a8b613b51a28219a71cddd7a66bb9e79a1edd31dbf33fca9551dc10b8b5718974e7
|
7
|
+
data.tar.gz: f4ed757b36b1afb1eab6a987616fb32b7d93a78238668154ac0b018de062839630f2be3979a3ce34e75b91d6ce5b8e6711a675308482e045116d0712497d4684
|
@@ -18,15 +18,18 @@ class Ishapi::Ability
|
|
18
18
|
end
|
19
19
|
|
20
20
|
end
|
21
|
+
#
|
22
|
+
# anonymous user
|
23
|
+
#
|
21
24
|
user ||= User.new
|
22
25
|
|
23
26
|
can [ :index, :show ], City
|
24
27
|
|
25
|
-
can [ :
|
28
|
+
can [ :show ], Gallery do |gallery|
|
26
29
|
gallery.is_public
|
27
30
|
end
|
28
31
|
|
29
|
-
can [ :
|
32
|
+
can [ :show ], Report do |report|
|
30
33
|
report.is_public
|
31
34
|
end
|
32
35
|
|
@@ -11,6 +11,12 @@ json.newsitems do
|
|
11
11
|
json.galleryname item.gallery.galleryname
|
12
12
|
json.partial! 'ishapi/photos/index', :photos => item.gallery.photos
|
13
13
|
end
|
14
|
+
if item.report
|
15
|
+
json.item_type 'report'
|
16
|
+
json.name item.report.name
|
17
|
+
json.reportname item.report.name_seo
|
18
|
+
json.report_id item.report_id.to_s
|
19
|
+
end
|
14
20
|
json.descr item.descr
|
15
21
|
end
|
16
22
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ishapi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.8.
|
4
|
+
version: 0.1.8.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- piousbox
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-06-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|