Class: Api::AuthorSerializer

Inherits:
ActiveModel::Serializer
  • Object
show all
Includes:
RelationsSerializerHelper
Defined in:
app/serializers/api/author_serializer.rb

Instance Method Summary collapse

Methods included from RelationsSerializerHelper

#has_clapped, #has_followed, #has_saved

Instance Method Details

#scope?Boolean

Returns:

  • (Boolean)


19
20
21
# File 'app/serializers/api/author_serializer.rb', line 19

def scope?
  defined?(current_user).nil?
end