add type getter to WP schema

pull/2683/head
Jan Sandbrink 10 years ago
parent 855a5fe0dc
commit f99e735611
  1. 2
      lib/api/v3/work_packages/schema/work_package_schema.rb

@ -35,7 +35,7 @@ module API
module WorkPackages
module Schema
class WorkPackageSchema
attr_reader :project
attr_reader :project, :type
def initialize(work_package: nil, project: nil, type: nil)
raise ArgumentError unless work_package || (project && type)

Loading…
Cancel
Save