Commit d8c43de

mo <mo.khan@gmail.com>
2018-12-26 19:58:55
implement as_json for rails render json integration
1 parent 6e99b82
Changed files (1)
lib
lib/scim/kit/templatable.rb
@@ -8,6 +8,10 @@ module Scim
         render(self, options)
       end
 
+      def as_json(options = nil)
+        to_h
+      end
+
       def to_h
         JSON.parse(to_json, symbolize_names: true)
       end