tramway-sport_school 1.2.1 → 1.2.2

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7c7e035504b3560debe721349404a8072a03df59e7441af9f5299149b5d75e6e
4
- data.tar.gz: 4aaedbb889f3d43624dd99c25f5f39a8c446c42790b485fc5c8a169a62e706f5
3
+ metadata.gz: df508c9500e5d582bcfdd1c88edf1e7c7178e9a32584c1f204f8e9b2dfc3da6d
4
+ data.tar.gz: 4bc934c6be475e825e4375c2060eb6eee77456389abafe3eff4358671975f76e
5
5
  SHA512:
6
- metadata.gz: 51f2779ab16c630b1ab4af378e1926392f853da7895f114f60e76254144d7b68853aa6ee4c13b3dd91f1832c1bc4c999236c054d7aa2bcc9a3012d4df78f41a7
7
- data.tar.gz: 24db1a0692397f60b16df9ec5e9029a18a535ae582e09bec81b4b6566b12ee4f6c96dbcdf93f7123ceffe7c1e3e33c68a201212e066133da16c2c4cd616a416c
6
+ metadata.gz: 5851163f03c94c86d508bdc91c444947eab9aaaadc8347872dec9b7fddd58addd979f8f881f983940bb1d1f0ba6d67590a0a75c1f40f1bcecd5d61a02e540502
7
+ data.tar.gz: 8b77617397753d10832b6e26d3482934fa97a0d4e28117736b8acab1c72239880d4e6d3c60dd8e4036048dd264b561a9ff2895ac010cb393c8b964379a434eab
@@ -2,7 +2,7 @@ module Tramway::SportSchool
2
2
  class Document < ::Tramway::Core::ApplicationRecord
3
3
  mount_uploader :file, FileUploader
4
4
 
5
- enumerize :document_type, in: [ :education, :school_info, :provision, :headers, :finance ], default: :education
5
+ enumerize :document_type, in: [ :education, :school_info, :provision, :headers, :finance, :materially ], default: :education
6
6
 
7
7
  state_machine :view_state, initial: :published do
8
8
  state :published
@@ -25,5 +25,6 @@ module Tramway::SportSchool
25
25
  scope :provision, -> { where document_type: :provision }
26
26
  scope :headers, -> { where document_type: :headers }
27
27
  scope :finance, -> { where document_type: :finance }
28
+ scope :materially, -> { where document_type: :materially }
28
29
  end
29
30
  end
@@ -1,5 +1,5 @@
1
1
  module Tramway
2
2
  module SportSchool
3
- VERSION = '1.2.1'
3
+ VERSION = '1.2.2'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tramway-sport_school
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 1.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pavel Kalashnikov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-23 00:00:00.000000000 Z
11
+ date: 2018-06-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pg