class ActiveAdmin::DSL
def controller(&block)
end
end
end
# Method gets added to Admin::PostsController
def some_method_on_controller
controller do
ActiveAdmin.register Post do
Example:
block, it will be evaluated in the controller.
Returns the controller for this resource. If you pass a
def controller(&block) @config.controller.class_exec(&block) if block_given? @config.controller end