module ActiveAdmin::Resource::ScopeTo
def scope_to?(context = nil)
def scope_to?(context = nil) return false if scope_to_method.nil? return render_in_context(context, scope_to_config[:if]) unless scope_to_config[:if].nil? return !render_in_context(context, scope_to_config[:unless]) unless scope_to_config[:unless].nil? true end