lib/grape-apiary/config.rb in grape-apiary-0.0.4 vs lib/grape-apiary/config.rb in grape-apiary-0.1.0
- old
+ new
@@ -5,12 +5,13 @@
:name,
:description,
:request_headers,
:response_headers,
:example_id_type,
- :resource_exclusion
- ]
+ :resource_exclusion,
+ :include_root
+ ].freeze
class << self
attr_accessor(*SETTINGS)
def request_headers
@@ -21,9 +22,13 @@
@response_headers ||= []
end
def resource_exclusion
@resource_exclusion ||= []
+ end
+
+ def include_root
+ @include_root ||= false
end
def supported_id_types
[:integer, :uuid, :bson]
end