Gab-Social/app/serializers/rest/shortcut_serializer.rb
mgabdev f92f75d747 Added shortcuts
• Added:
- shortcuts functionality
- shortcuts route, controller, model
- shortcut error message for "exists"
- shortcut redux
- EditShortcutsModal, constant
- links to sidebar, sidebar_xs
- options to add/remove group, account in GroupOptionsPopover, ProfileOptionsPopover
- shortcuts page, feature/list
2020-07-21 22:24:26 -05:00

11 lines
201 B
Ruby

# frozen_string_literal: true
class REST::ShortcutSerializer < ActiveModel::Serializer
attributes :id, :account_id, :created_at, :shortcut_type, :shortcut_id
def id
object.id.to_s
end
end