Adapt source to core's roar and update

pull/6827/head
Hagen Schink 10 years ago
parent 634d94a8bc
commit 8187e3c56d
  1. 6
      lib/api/v3/cost_objects/cost_object_representer.rb
  2. 6
      lib/api/v3/cost_types/cost_type_representer.rb

@ -18,14 +18,14 @@
#++
require 'roar/decorator'
require 'roar/representer/json/hal'
require 'roar/json/hal'
module API
module V3
module CostObjects
class CostObjectRepresenter < Roar::Decorator
include Roar::Representer::JSON::HAL
include Roar::Representer::Feature::Hypermedia
include Roar::JSON::HAL
include Roar::Hypermedia
include OpenProject::StaticRouting::UrlHelpers
self.as_strategy = API::Utilities::CamelCasingStrategy.new

@ -18,14 +18,14 @@
#++
require 'roar/decorator'
require 'roar/representer/json/hal'
require 'roar/json/hal'
module API
module V3
module CostTypes
class CostTypeRepresenter < Roar::Decorator
include Roar::Representer::JSON::HAL
include Roar::Representer::Feature::Hypermedia
include Roar::JSON::HAL
include Roar::Hypermedia
include OpenProject::StaticRouting::UrlHelpers
self.as_strategy = API::Utilities::CamelCasingStrategy.new

Loading…
Cancel
Save