enju_subject 0.1.0.pre6 → 0.1.0.pre7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/enju_subject/ability.rb +1 -1
- data/app/views/classification_types/index.html.erb +1 -1
- data/app/views/classifications/_index.html.erb +1 -1
- data/app/views/classifications/_index_subject.html.erb +2 -2
- data/app/views/subject_has_classifications/index.html.erb +1 -1
- data/app/views/subject_heading_types/index.html.erb +1 -1
- data/app/views/subject_types/index.html.erb +1 -1
- data/app/views/subjects/_index.html.erb +1 -1
- data/lib/enju_subject/version.rb +1 -1
- data/spec/dummy/app/models/ability.rb +1 -1
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/solr/data/test/index/segments.gen +0 -0
- data/spec/dummy/solr/data/test/index/segments_166 +0 -0
- metadata +3 -3
- data/spec/dummy/solr/data/test/index/segments_14k +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3c944887efaf78d8871e5dbf5f6577b792261409
|
4
|
+
data.tar.gz: a5c431d2772f71898a06dfae749eef5b5aec3929
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c591ca724c4ad98edd01a57ad1d44dde8581a0b1443b86fcbf7909431abe4238178e8e3710ce19aeca9ed4ca5172ab515b979ddfd1f21a17b30a856b18bcd3d
|
7
|
+
data.tar.gz: a47c6a4ff4ae8dae0e67de7b0d7c7b304bf1c0a06a721ceea3cf7871d6c5fe45b17b7a9e77c23b7121213fe3f728cb51cf99b1e00147f933927d0dfbe3e6200f
|
@@ -14,7 +14,7 @@ module EnjuSubject
|
|
14
14
|
can :manage, WorkHasSubject
|
15
15
|
if LibraryGroup.site_config.network_access_allowed?(ip_address)
|
16
16
|
can [:read, :create, :update], ClassificationType
|
17
|
-
can :destroy, ClassificationType do |classification_type|
|
17
|
+
can [:destroy, :delete], ClassificationType do |classification_type|
|
18
18
|
classification_type.classifications.empty?
|
19
19
|
end
|
20
20
|
can :manage, [
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%- if can? :update, classification_type -%>
|
26
26
|
<%= link_to t('page.edit'), edit_classification_type_path(classification_type) -%>
|
27
27
|
<% end %>
|
28
|
-
<%- if can? :
|
28
|
+
<%- if can? :delete, classification_type -%>
|
29
29
|
<%= link_to t('page.destroy'), classification_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
30
|
<%- end -%>
|
31
31
|
</td>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<td><%= classification.note -%></td>
|
26
26
|
<td><%= link_to classification.classification_type.display_name.localize, classification.classification_type -%></td>
|
27
27
|
<td>
|
28
|
-
<%- if can? :
|
28
|
+
<%- if can? :delete, classification -%>
|
29
29
|
<%= link_to t('page.edit'), edit_classification_path(classification) -%>
|
30
30
|
<%= link_to t('page.destroy'), classification, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
31
31
|
<%- end -%>
|
@@ -31,12 +31,12 @@
|
|
31
31
|
<td><%= classification.note -%></td>
|
32
32
|
<td><%= classification.classification_type.display_name.localize -%></td>
|
33
33
|
<td>
|
34
|
-
<%- if can? :
|
34
|
+
<%- if can? :delete, classification -%>
|
35
35
|
<%= link_to t('page.edit'), edit_classification_path(classification) -%>
|
36
36
|
<% end %>
|
37
37
|
</td>
|
38
38
|
<td>
|
39
|
-
<%- if can? :
|
39
|
+
<%- if can? :delete, classification -%>
|
40
40
|
<%- if params[:mode] == 'add' -%>
|
41
41
|
<%= link_to t('page.add'), new_subject_subject_has_classification_path(@subject, :classification_id => classification.id) unless @subject.classifications.include?(classification) -%>
|
42
42
|
<%- else -%>
|
@@ -16,7 +16,7 @@
|
|
16
16
|
<td><%= link_to subject_has_classification.classification.category, subject_has_classification.classification -%></td>
|
17
17
|
<td><%= link_to t('page.show'), subject_has_classification -%></td>
|
18
18
|
<td>
|
19
|
-
<% if can? :
|
19
|
+
<% if can? :delete, subject_has_classification %>
|
20
20
|
<%= link_to t('page.edit'), edit_subject_has_classification_path(subject_has_classification) -%>
|
21
21
|
<%= link_to t('page.destroy'), subject_has_classification, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
22
22
|
<% end %>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%- if can? :update, subject_heading_type -%>
|
26
26
|
<%= link_to t('page.edit'), edit_subject_heading_type_path(subject_heading_type) -%>
|
27
27
|
<% end %>
|
28
|
-
<%- if can? :
|
28
|
+
<%- if can? :delete, subject_heading_type -%>
|
29
29
|
<%= link_to t('page.destroy'), subject_heading_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
30
|
<%- end -%>
|
31
31
|
</td>
|
@@ -25,7 +25,7 @@
|
|
25
25
|
<%- if can? :update, subject_type -%>
|
26
26
|
<%= link_to t('page.edit'), edit_subject_type_path(subject_type) -%>
|
27
27
|
<% end %>
|
28
|
-
<%- if can? :
|
28
|
+
<%- if can? :delete, subject_type -%>
|
29
29
|
<%= link_to t('page.destroy'), subject_type, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
30
30
|
<%- end -%>
|
31
31
|
</td>
|
@@ -23,7 +23,7 @@
|
|
23
23
|
<%- if can? :update, subject -%>
|
24
24
|
<%= link_to t('page.edit'), edit_subject_path(subject) -%>
|
25
25
|
<%- end -%>
|
26
|
-
<%- if can? :
|
26
|
+
<%- if can? :delete, subject -%>
|
27
27
|
<%= link_to t('page.destroy'), subject, :data => {:confirm => t('page.are_you_sure')}, :method => :delete -%>
|
28
28
|
<%- end -%>
|
29
29
|
</td>
|
data/lib/enju_subject/version.rb
CHANGED
@@ -14,7 +14,7 @@
|
|
14
14
|
can :manage, WorkHasSubject
|
15
15
|
if LibraryGroup.site_config.network_access_allowed?(ip_address)
|
16
16
|
can [:read, :create, :update], ClassificationType
|
17
|
-
can :destroy, ClassificationType do |classification_type|
|
17
|
+
can [:destroy, :delete], ClassificationType do |classification_type|
|
18
18
|
classification_type.classifications.empty?
|
19
19
|
end
|
20
20
|
can :manage, [
|
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: enju_subject
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.0.
|
4
|
+
version: 0.1.0.pre7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
@@ -420,7 +420,7 @@ files:
|
|
420
420
|
- spec/dummy/solr/conf/stopwords.txt
|
421
421
|
- spec/dummy/solr/conf/synonyms.txt
|
422
422
|
- spec/dummy/solr/data/test/index/segments.gen
|
423
|
-
- spec/dummy/solr/data/test/index/
|
423
|
+
- spec/dummy/solr/data/test/index/segments_166
|
424
424
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
425
425
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
426
426
|
- spec/dummy/spec/fixtures/subjects.yml
|
@@ -654,7 +654,7 @@ test_files:
|
|
654
654
|
- spec/dummy/solr/conf/stopwords.txt
|
655
655
|
- spec/dummy/solr/conf/synonyms.txt
|
656
656
|
- spec/dummy/solr/data/test/index/segments.gen
|
657
|
-
- spec/dummy/solr/data/test/index/
|
657
|
+
- spec/dummy/solr/data/test/index/segments_166
|
658
658
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
659
659
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
660
660
|
- spec/dummy/spec/fixtures/subjects.yml
|
Binary file
|