about summary refs log tree commit diff
path: root/app/lib/nodeinfo/adapter.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/lib/nodeinfo/adapter.rb')
-rw-r--r--app/lib/nodeinfo/adapter.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/lib/nodeinfo/adapter.rb b/app/lib/nodeinfo/adapter.rb
new file mode 100644
index 000000000..1b48dcb98
--- /dev/null
+++ b/app/lib/nodeinfo/adapter.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class NodeInfo::Adapter < ActiveModelSerializers::Adapter::Attributes
+  def self.default_key_transform
+    :camel_lower
+  end
+end