diff options
Diffstat (limited to 'activesupport/lib/active_support/number_helper/number_converter.rb')
-rw-r--r-- | activesupport/lib/active_support/number_helper/number_converter.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activesupport/lib/active_support/number_helper/number_converter.rb b/activesupport/lib/active_support/number_helper/number_converter.rb index 39255d14a3..0afa08db84 100644 --- a/activesupport/lib/active_support/number_helper/number_converter.rb +++ b/activesupport/lib/active_support/number_helper/number_converter.rb @@ -115,6 +115,9 @@ module ActiveSupport } } + def self.convert(number, options) + new(number, options).execute + end def initialize(number, opts = {}) @number = number |