Class: Api::AuthorSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- Api::AuthorSerializer
- 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
19 20 21 |
# File 'app/serializers/api/author_serializer.rb', line 19 def scope? defined?(current_user).nil? end |