redmine_rest 0.6.0 → 0.6.1

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: c650caea3e5f25a8dd23a954d48a9c12e0837c4d
4
- data.tar.gz: c7e03f5bb55417b07afca18e2cb45dce898b17b6
3
+ metadata.gz: 4e92d9ab8694a1917879ba8e959e123cd1e6a08b
4
+ data.tar.gz: c8de20b6191ba7b04fc1bf12aba12ee1480bcca0
5
5
  SHA512:
6
- metadata.gz: 9a67c5f368edab616da3de28b6f0a0bdce2fce1d0a66f253f856d43993c75b654c7f36f7b1bfa05a29e504a8a2868fb3f992ee976102e0d16b9fb49eb01c0e2f
7
- data.tar.gz: 7f5745029e7de897d4bb84864563d127e254edd97f64583a7689f06ccefe22676acddd27b3051ab306ff349398390eff304532aa55054e4a8f38a5380a5290f9
6
+ metadata.gz: c6644196b1b2bbf241bc425d80763766c3d71495e432ad9592cfccaaad12da1f4162ccf42326287519f5174c6e453abe1dac8f072a59b484af3c7207ebc20604
7
+ data.tar.gz: 62ee2240131efd9c75aa33ce98dcbe5772751edc2f607fd0a58321b4f15a62966531b4704017202c1cfb77f22f48a0a0d7174165033a4b415dc00333c87b02f3
@@ -28,6 +28,10 @@ module RedmineRest
28
28
 
29
29
  validates :subject, :tracker_id, presence: true
30
30
 
31
+ def tracker_id
32
+ attributes[:tracker_id] || tracker? && tracker.id
33
+ end
34
+
31
35
  #
32
36
  # Adds journals, relations, children and watchers to request.
33
37
  #
@@ -1,3 +1,3 @@
1
1
  module RedmineRest
2
- VERSION = '0.6.0'.freeze
2
+ VERSION = '0.6.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redmine_rest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitriy Non