Class: Admin::AttachmentSerializer
- Inherits:
-
ActiveModel::Serializer
- Object
- ActiveModel::Serializer
- Admin::AttachmentSerializer
show all
- Includes:
- PagesCore::AttachmentsHelper
- Defined in:
- app/serializers/admin/attachment_serializer.rb
Instance Method Summary
collapse
#attachment_path, #download_attachment_path, #page_file_path
Instance Method Details
#description ⇒ Object
13
14
15
|
# File 'app/serializers/admin/attachment_serializer.rb', line 13
def description
localized_attribute(:description)
end
|
#name ⇒ Object
9
10
11
|
# File 'app/serializers/admin/attachment_serializer.rb', line 9
def name
localized_attribute(:name)
end
|
#url ⇒ Object
17
18
19
|
# File 'app/serializers/admin/attachment_serializer.rb', line 17
def url
attachment_path(object)
end
|