Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

32 lines (26 sloc) 0.724 kb
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
register_instance_option :pjax? do
false
end
end
end
end
end
Jump to Line
Something went wrong with that request. Please try again.