def new_resource(attributes = nil, &block)
      if attributes.blank? && respond_to?(:params) && params.is_a?(ActionController::Parameters)
        resource_form_name = ActiveModel::Naming.singular(resource_class)
        attributes = params[resource_form_name] || params[resource_name] || {}
      end
      resource_service.new attributes, &block
    end
def new_resource(attributes = nil, &block)
      if attributes.blank? && respond_to?(:params) && params.is_a?(ActionController::Parameters)
        resource_form_name = ActiveModel::Naming.singular(resource_class)
        attributes = params[resource_form_name] || params[resource_name] || {}
      end
      resource_service.new attributes, &block
    end
makes a new resource, if attributes are not supplied, determine them from the
 params hash and the current resource_class, or resource_name (the latter left in for BC)