gaku_core 0.3.0.pre.4 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/app/models/concerns/picture.rb +1 -0
- data/app/models/gaku/student.rb +6 -1
- data/lib/tasks/testing.rake +1 -0
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e89ce227b0897c80ae1c05922a91b2a233620b5231e1d206bf3d2bfe06f7e2e0
|
4
|
+
data.tar.gz: 7c268118f0349c84477405b535a1be040a79a6f02d18d605a47d96b8a289926b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dcbd2f59458861e3b6054b3eb535a4b8b3c2e207e0810a6cce495a1d04584183ca7516657402620d11d2272a9c6078284eee0118d4c44aaa41e06c99f9fbd71f
|
7
|
+
data.tar.gz: 8fdb3e81e468f31cae735ef5d982b86fa57a9345a6ea04101b12fe783f13d0c1b2e13441f111869b5b592d519dfd12818a3c6859020ce853f1186d0dc61d0873
|
data/app/models/gaku/student.rb
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
module Gaku
|
2
2
|
class Student < ApplicationRecord
|
3
|
-
include Person, Addresses, Contacts, Notes,
|
3
|
+
include Person, Addresses, Contacts, Notes, Pagination
|
4
4
|
|
5
5
|
has_many :enrollments, dependent: :destroy
|
6
6
|
|
@@ -50,6 +50,11 @@ module Gaku
|
|
50
50
|
after_create :set_serial_id
|
51
51
|
after_save :set_code
|
52
52
|
|
53
|
+
has_attached_file :picture,
|
54
|
+
path: ":rails_root/uploads/:class/:attachment/:id_partition/:style/:filename",
|
55
|
+
styles: { thumb: '256x256>' }, default_url: ':placeholder'
|
56
|
+
do_not_validate_attachment_file_type :picture
|
57
|
+
|
53
58
|
def self.ransackable_attributes(auth_object = nil)
|
54
59
|
super & %w(enrollment_status_code)
|
55
60
|
end
|
data/lib/tasks/testing.rake
CHANGED
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
|
4
|
+
version: 0.3.0
|
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: 2018-
|
13
|
+
date: 2018-03-17 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rails
|
@@ -620,9 +620,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
620
620
|
version: '0'
|
621
621
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
622
622
|
requirements:
|
623
|
-
- - "
|
623
|
+
- - ">="
|
624
624
|
- !ruby/object:Gem::Version
|
625
|
-
version:
|
625
|
+
version: '0'
|
626
626
|
requirements:
|
627
627
|
- postgresql
|
628
628
|
- postgresql-contrib
|