I want to show in objects list the icon 'active.ico' if created_at<1.day.ago else
show 'passive.ico'.How would I do that?
RailsAdmin.config do |config|
config.model Player do
list do
field :created_at do # (1)
//if created_at<1.day show 'active.ico'
//else show 'passive.ico'
end
end
end
end