mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-31 06:31:41 +00:00
20 lines
256 B
Ruby
20 lines
256 B
Ruby
class Api::RailsFlashSerializer < ActiveModel::Serializer
|
|
attributes :info, :success, :error, :notice
|
|
|
|
def info
|
|
object.info
|
|
end
|
|
|
|
def success
|
|
object.success
|
|
end
|
|
|
|
def error
|
|
object.error
|
|
end
|
|
|
|
def notice
|
|
object.notice
|
|
end
|
|
end
|