Sha256: b7cfbfa57f63ae21bf19d6775987eb6e91233b9b914364555ec2573d50f3ddd3
Contents?: true
Size: 815 Bytes
Versions: 12
Compression:
Stored size: 815 Bytes
Contents
# frozen_string_literal: true module RailsAdmin module Config module Actions class ShowInApp < RailsAdmin::Config::Actions::Base RailsAdmin::Config::Actions.register(self) register_instance_option :member do true end register_instance_option :visible? do authorized? && begin bindings[:controller].main_app.url_for(bindings[:object]) rescue StandardError false end end register_instance_option :controller do proc do redirect_to main_app.url_for(@object) end end register_instance_option :link_icon do 'fas fa-eye' end register_instance_option :turbo? do false end end end end end
Version data entries
12 entries across 12 versions & 1 rubygems