enju_subject 0.1.0.pre14 → 0.1.0.pre15
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/classification.rb +0 -1
- data/app/models/subject.rb +1 -1
- data/app/views/classification_types/show.html.erb +1 -2
- data/lib/enju_subject/version.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_1ux +0 -0
- data/spec/factories/subject.rb +1 -0
- metadata +3 -3
- data/spec/dummy/solr/data/test/index/segments_1ss +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 550d30ae82251c10a2f2b81fc6969907f5fb05f7
|
4
|
+
data.tar.gz: 93560ce11842b3f23895bf845ffbfffb91478064
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 27f174c4b96d85048e8a7ea410a35eb6f2a5ddf142ba5277dcd46aa57dcd3fa9f9d6baab65ded3033d51e4d46c4a8df3af3f758f1f951ef274ffd1efbf059cc0
|
7
|
+
data.tar.gz: 6ed425e86eb99d8633e60e4ac6acf9d0b16b40e2968a476c5bcf7b601938f8a5de758e6968ae41b9ec810292c4912f9e73c0d7e7006daa59f9289b6e95aef4c6
|
@@ -5,7 +5,6 @@ class Classification < ActiveRecord::Base
|
|
5
5
|
|
6
6
|
validates_associated :classification_type
|
7
7
|
validates_presence_of :category, :classification_type
|
8
|
-
validates_uniqueness_of :category, :scope => :classification_type_id
|
9
8
|
searchable do
|
10
9
|
text :category, :note
|
11
10
|
integer :classification_type_id
|
data/app/models/subject.rb
CHANGED
@@ -8,7 +8,7 @@ class Subject < ActiveRecord::Base
|
|
8
8
|
belongs_to :required_role, :class_name => 'Role', :foreign_key => 'required_role_id'
|
9
9
|
|
10
10
|
validates_associated :subject_type, :subject_heading_type
|
11
|
-
validates_presence_of :term, :subject_type_id
|
11
|
+
validates_presence_of :term, :subject_type_id, :subject_heading_type_id
|
12
12
|
|
13
13
|
searchable do
|
14
14
|
text :term
|
@@ -23,8 +23,7 @@
|
|
23
23
|
|
24
24
|
<div id="submenu" class="ui-corner-all">
|
25
25
|
<ul>
|
26
|
-
<li><%= link_to t('page.listing', :model => t('activerecord.models.classification')), classification_type_classifications_path(@classification_type) -%></li>
|
27
|
-
<li><%= link_to t('page.edit'), edit_classification_type_path(@classification_type) -%></li>
|
28
26
|
<li><%= back_to_index(flash[:page_info]) -%></li>
|
27
|
+
<li><%= link_to t('page.edit'), edit_classification_type_path(@classification_type) -%></li>
|
29
28
|
</ul>
|
30
29
|
</div>
|
data/lib/enju_subject/version.rb
CHANGED
data/spec/dummy/db/test.sqlite3
CHANGED
Binary file
|
Binary file
|
Binary file
|
data/spec/factories/subject.rb
CHANGED
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.pre15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kosuke Tanabe
|
@@ -403,7 +403,7 @@ files:
|
|
403
403
|
- spec/dummy/solr/conf/stopwords.txt
|
404
404
|
- spec/dummy/solr/conf/synonyms.txt
|
405
405
|
- spec/dummy/solr/data/test/index/segments.gen
|
406
|
-
- spec/dummy/solr/data/test/index/
|
406
|
+
- spec/dummy/solr/data/test/index/segments_1ux
|
407
407
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
408
408
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
409
409
|
- spec/dummy/spec/fixtures/subjects.yml
|
@@ -628,7 +628,7 @@ test_files:
|
|
628
628
|
- spec/dummy/solr/conf/stopwords.txt
|
629
629
|
- spec/dummy/solr/conf/synonyms.txt
|
630
630
|
- spec/dummy/solr/data/test/index/segments.gen
|
631
|
-
- spec/dummy/solr/data/test/index/
|
631
|
+
- spec/dummy/solr/data/test/index/segments_1ux
|
632
632
|
- spec/dummy/solr/data/test/spellchecker/segments.gen
|
633
633
|
- spec/dummy/solr/data/test/spellchecker/segments_1
|
634
634
|
- spec/dummy/spec/fixtures/subjects.yml
|
Binary file
|