Merge pull request #1531 from opf/fix/api-reform-deprecation-warnings

Fix noisy Reform model accessor deprecation warnings
pull/1543/head
Marek Takac 10 years ago
commit f556060cec
  1. 4
      lib/api/v3/queries/query_model.rb
  2. 4
      lib/api/v3/work_packages/work_package_model.rb

@ -48,6 +48,10 @@ module API
property :sort_criteria, on: :query, type: String
property :group_by, on: :query, type: String
property :display_sums, on: :query, type: String
def query
model[:query]
end
end
end
end

@ -51,6 +51,10 @@ module API
property :assigned_to_id, on: :work_package, type: Integer
property :fixed_version_id, on: :work_package, type: Integer
def work_package
model[:work_package]
end
def type
work_package.type.try(:name)
end

Loading…
Cancel
Save