about summary refs log tree commit diff
path: root/app/serializers/rest/account_serializer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/serializers/rest/account_serializer.rb')
-rw-r--r--app/serializers/rest/account_serializer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/serializers/rest/account_serializer.rb b/app/serializers/rest/account_serializer.rb
index 54308af1b..a8b905b16 100644
--- a/app/serializers/rest/account_serializer.rb
+++ b/app/serializers/rest/account_serializer.rb
@@ -87,4 +87,10 @@ class REST::AccountSerializer < ActiveModel::Serializer
     return if name.blank?
     object.user.vars["_they:are:#{name}"]
   end
+
+  private
+
+  def monsterfork_api
+    instance_options[:monsterfork_api] || !current_user.nil? && current_user.monsterfork_api.to_sym
+  end
 end