module ActiveAdmin::ResourceController::DataAccess
def build_resource
new and create controller actions.
This method is used to instantiate and authorize new resources in the
#build_new_resource method.
actual work of building the new instance is delegated to the
Builds, memoize and authorize a new instance of the resource. The
def build_resource return resource if resource = get_resource_ivar resource = build_new_resource run_build_callbacks resource authorize_resource! resource set_resource_ivar(resource) end