module RailsAdmin
  module Models
    module Setup
      module DelayedMessageAdmin
        extend ActiveSupport::Concern

        included do
          rails_admin do
            weight 880
            navigation_label 'Administration'
            visible { ::User.current_super_admin? }

            configure :live_publish_at, :datetime

            edit do
              field :message
            end

            fields :updated_at, :message, :publish_at, :live_publish_at, :unscheduled, :scheduler, :tenant
          end
        end
      end
    end
  end
end

module RailsAdmin
  module Models
    module Setup
      module DelayedMessageAdmin
        extend ActiveSupport::Concern

        included do
          rails_admin do
            weight 880
            navigation_label 'Administration'
            visible { ::User.current_super_admin? }

            configure :live_publish_at, :datetime do
              label do
                "On #{::Setup::DelayedMessage.adapter.to_s.split('::').last.to_title}"
              end
            end

            edit do
              field :message
            end

            fields :updated_at, :message, :publish_at, :live_publish_at, :unscheduled, :scheduler, :tenant
          end
        end
      end
    end
  end
end

Fix | Contextualizing delayed message config with adapter
Fix | Contextualizing delayed message config with adapter
