Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add new options to the initializer template

  • Loading branch information...
commit 7b227a02b63274a6ab2ede8cf6335eacd45798e1 1 parent e66ebf7
@alup alup authored
Showing with 8 additions and 2 deletions.
  1. +8 −2 lib/generators/templates/money.rb
View
10 lib/generators/templates/money.rb
@@ -4,7 +4,7 @@
# To set the default currency
#
- #config.default_currency = :usd
+ # config.default_currency = :usd
# Set default bank object
#
@@ -21,7 +21,7 @@
# To handle the inclusion of validations for monetized fields
# The default value is true
#
- #config.include_validations = true
+ # config.include_validations = true
# Default ActiveRecord migration configuration values for columns:
#
@@ -58,4 +58,10 @@
# :decimal_mark => ","
# }
+ # Set money formatted output globally.
+ # Default value is nil meaning "ignore this option".
+ # Options are nil, true, false.
+ #
+ # config.no_cents_if_whole = nil
+ # config.symbol = nil
end
Please sign in to comment.
Something went wrong with that request. Please try again.