mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
Fix rubocop issues
This commit is contained in:
@@ -1,19 +1,7 @@
|
||||
class Api::RailsFlashSerializer < ActiveModel::Serializer
|
||||
attributes :info, :success, :error, :notice
|
||||
module Api
|
||||
class 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
|
||||
delegate :info, :success, :error, :notice, to: :object
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,3 +1,5 @@
|
||||
class Api::UserSerializer < ActiveModel::Serializer
|
||||
attributes :id, :email
|
||||
module Api
|
||||
class UserSerializer < ActiveModel::Serializer
|
||||
attributes :id, :email
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user