gaku_core 0.3.0.pre.2 → 0.3.0.pre.3

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
- SHA1:
3
- metadata.gz: 318aac021ae5b376881e3b51cae416adeb1f7964
4
- data.tar.gz: 1b289f2f5f1760a0cdfe6b7364baa4dac0818ecb
2
+ SHA256:
3
+ metadata.gz: 4a6ef622acd72623107f32548452d00afd254359712ced17d71ba358318acb25
4
+ data.tar.gz: c7a3233b659f6333c218d802cc59d5402cbb1e2814652d21b57eec4a4f46bb0f
5
5
  SHA512:
6
- metadata.gz: 61f58f9dac4d8cf37d00a5b58b59a12d581aadd18a2e241580355ccd3cf00390818d6ec0477d84584aaf36e493b9afe9b3ad7e46b27060d2e2f5ff31204f28c4
7
- data.tar.gz: 1bee2bed381141e322efd081483efc3c671099408ff3c51e93a671425c34ea543fa18082b06de5bcc4116613d3320421a5d2a7c0db83b5729348ff2fabf68524
6
+ metadata.gz: 8b18a93b960e874ca316811380cfc7c2c40edf85d341c37ca03ff3a8d53abdc3cd0f351f965cd6b662fdf70354814c6884bdd84387e3b3c79333784ee4b86796
7
+ data.tar.gz: f8ee99a62c7dae051933b40f914496767c698b30f7e5da1510c4fe7b6d42f2e2775cb9277a20d623a963f4c9c18f78826b62d13c8484e55de5440eff1370a159
@@ -50,6 +50,10 @@ module Gaku
50
50
  after_create :set_serial_id
51
51
  after_save :set_code
52
52
 
53
+ def self.ransackable_attributes(auth_object = nil)
54
+ super & %w(enrollment_status_code)
55
+ end
56
+
53
57
  def full_name
54
58
  "#{surname} #{name}"
55
59
  end
@@ -2,5 +2,7 @@ module Gaku
2
2
  class StudentGuardian < ActiveRecord::Base
3
3
  belongs_to :student, counter_cache: :guardians_count
4
4
  belongs_to :guardian
5
+
6
+ validates :student_id, uniqueness: { scope: :guardian_id }
5
7
  end
6
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gaku_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0.pre.2
4
+ version: 0.3.0.pre.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rei Kagetsuki
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2017-12-05 00:00:00.000000000 Z
13
+ date: 2018-02-19 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rails
@@ -627,7 +627,7 @@ requirements:
627
627
  - postgresql
628
628
  - postgresql-contrib
629
629
  rubyforge_project:
630
- rubygems_version: 2.6.14
630
+ rubygems_version: 2.7.3
631
631
  signing_key:
632
632
  specification_version: 4
633
633
  summary: GAKU Engine core module