method

round

Importance_0
v7.1.3.2 - Show latest stable - 0 notes - Class: ActiveModel::Validations::NumericalityValidator
round(raw_value, scale) private

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activemodel/lib/active_model/validations/numericality.rb, line 90
      def round(raw_value, scale)
        scale ? raw_value.round(scale) : raw_value
      end
Register or log in to add new notes.