Class: V1::UserSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- V1::UserSerializer
- Defined in:
- app/serializers/fbuser/v1/user_serializer.rb
Instance Method Summary collapse
- #include_associations! ⇒ Object
- #include_created_at? ⇒ Boolean
- #include_fb_user_id? ⇒ Boolean
-
#include_id? ⇒ Boolean
has_one :bulletin has_many :posts.
- #include_updated_at? ⇒ Boolean
- #include_username? ⇒ Boolean
Instance Method Details
#include_associations! ⇒ Object
35 36 37 38 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 35 def include_associations! #include! :bulletin if ::Authorization::Fbuser::V1::User.include_bulletin?(current_user,object,@options) #include! :posts if ::Authorization::Fbuser::V1::User.include_posts?(current_user,object,@options) end |
#include_created_at? ⇒ Boolean
27 28 29 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 27 def include_created_at? return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options) end |
#include_fb_user_id? ⇒ Boolean
23 24 25 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 23 def include_fb_user_id? return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options) end |
#include_id? ⇒ Boolean
has_one :bulletin has_many :posts
15 16 17 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 15 def include_id? return ::Authorization::Fbuser::V1::User.include_id?(current_user,object,@options) end |
#include_updated_at? ⇒ Boolean
31 32 33 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 31 def include_updated_at? return ::Authorization::Fbuser::V1::User.include_updated_at?(current_user,object,@options) end |
#include_username? ⇒ Boolean
19 20 21 |
# File 'app/serializers/fbuser/v1/user_serializer.rb', line 19 def include_username? return ::Authorization::Fbuser::V1::User.include_created_at?(current_user,object,@options) end |