Class: Money

Inherits:
Object
  • Object
show all
Extended by:
BlankMongoizing
Defined in:
lib/workarea/ext/freedom_patches/money.rb

Defined Under Namespace

Modules: BlankMongoizing

Instance Method Summary collapse

Methods included from BlankMongoizing

mongoize

Instance Method Details

#as_jsonObject



15
16
17
# File 'lib/workarea/ext/freedom_patches/money.rb', line 15

def as_json(*)
  Money.mongoize(self)
end

#to_jsonObject



19
20
21
# File 'lib/workarea/ext/freedom_patches/money.rb', line 19

def to_json(*)
  as_json.to_json
end