We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a941020 commit 813eb59Copy full SHA for 813eb59
lib/grape/roar/decorator.rb
@@ -4,7 +4,7 @@ module Grape
4
module Roar
5
class Decorator < ::Roar::Decorator
6
def self.represent(object, _options = {})
7
- new(object)
+ super(object)
8
end
9
10
lib/grape/roar/representer.rb
@@ -2,13 +2,14 @@ module Grape
2
3
module Representer
def self.included(base)
+ super
+ base.send(:include, Roar::Representer)
base.extend(ClassMethods)
module ClassMethods
11
def represent(object, _options = {})
- object.extend self
- object
12
13
14
15
0 commit comments