Class: BigDecimal

Inherits:
Object
  • Object
show all
Defined in:
lib/patches/ar2/base.rb

Overview

temp patch as_json on decimals introduced by rails. which collpases with ruby-yail

Instance Method Summary collapse

Instance Method Details

#as_jsonObject



3
4
5
# File 'lib/patches/ar2/base.rb', line 3

def as_json
  self.to_f
end