Supplier main board section selector
This commit is contained in:
@@ -88,6 +88,17 @@ class Supplier
|
||||
save
|
||||
end
|
||||
|
||||
def serializable_hash(*)
|
||||
{
|
||||
id: id,
|
||||
name: name
|
||||
}
|
||||
end
|
||||
|
||||
def as_json(*)
|
||||
serializable_hash
|
||||
end
|
||||
|
||||
|
||||
# Find a user by its confirmation token and try to confirm it.
|
||||
# If no user is found, returns a new user with an error.
|
||||
|
||||
Reference in New Issue
Block a user