app/controllers/application_controller.rb
# methods used on Admin and User registration
methods used on Admin and User registration
methods used on Admin and User registration
def render_resource(resource)
    if resource.errors.empty?
      render json: resource
    else
      validation_error(resource)
    end
  end
def render_resource ( resource ) if resource . errors . empty? render json : resource else validation_error ( resource ) end end
methods used on Admin and User registration
methods used on Admin and User registration
resource
<not_specific>