c8d01a84ce
Introduces the ability to seed sample data into accounts in development and staging. fixes: #3429
9 lines
257 B
Ruby
9 lines
257 B
Ruby
require 'administrate/field/base'
|
|
|
|
class AvatarField < Administrate::Field::Base
|
|
def avatar_url
|
|
return data.presence if data.presence
|
|
|
|
resource.is_a?(User) ? '/assets/administrate/user/avatar.png' : '/assets/administrate/bot/avatar.png'
|
|
end
|
|
end
|