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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f53eb252d1fbc6832322d735d57b15b11aa63269
4
- data.tar.gz: 9736eb6d6466b072718346f43e7e27f5827a4f67
3
+ metadata.gz: 550d30ae82251c10a2f2b81fc6969907f5fb05f7
4
+ data.tar.gz: 93560ce11842b3f23895bf845ffbfffb91478064
5
5
  SHA512:
6
- metadata.gz: 6ff7f21843d3ea51a961d03d9fb4b54087caa3e66e69f05c174fbe62e4af4e106564d83ebad9df4605f742149032eb99bc725def840f8ba04ddc709bf11707a5
7
- data.tar.gz: 4d0cee45a22718db76db002c067303aad88fbfc71fc4f416de65dadae46720e5bbad64ec99778e2665a5504312216dd811413243afd3d8f5b0603e81b11b07eb
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
@@ -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 #, :subject_heading_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>
@@ -1,3 +1,3 @@
1
1
  module EnjuSubject
2
- VERSION = "0.1.0.pre14"
2
+ VERSION = "0.1.0.pre15"
3
3
  end
Binary file
@@ -1,6 +1,7 @@
1
1
  FactoryGirl.define do
2
2
  factory :subject do |f|
3
3
  f.sequence(:term){|n| "subject_#{n}"}
4
+ f.subject_heading_type_id{FactoryGirl.create(:subject_heading_type).id}
4
5
  f.subject_type_id{FactoryGirl.create(:subject_type).id}
5
6
  end
6
7
  end
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.pre14
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/segments_1ss
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/segments_1ss
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