Sha256: 5dac655201cba4f5320a6662e26e10bb6e2d96b6a415dac09b7ff5ca195ab52e
Contents?: true
Size: 652 Bytes
Versions: 15
Compression:
Stored size: 652 Bytes
Contents
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? && (bindings[:controller].main_app.url_for(bindings[:object]) rescue false) end register_instance_option :controller do Proc.new do redirect_to main_app.url_for(@object) end end register_instance_option :link_icon do 'icon-eye-open' end end end end end
Version data entries
15 entries across 15 versions & 2 rubygems