We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9811a97 commit 8f8d685Copy full SHA for 8f8d685
config/initializers/money.rb
@@ -1,3 +1,12 @@
1
+# This MoneyRails::ActionViewExtension module should get loaded
2
+# automatically when ActionView is loaded, but *very* rarely when
3
+# setting up the app locally ItemHelper is loaded beforehand,
4
+# which depends on MoneyRails::ActionViewExtension, so without
5
+# this line an uninitialized constant error is raised.
6
+#
7
+# See: https://github.com/RubyMoney/money-rails/issues/614
8
+require "money-rails/helpers/action_view_extension"
9
+
10
MoneyRails.configure do |config|
11
# set the default currency
12
config.default_currency = :usd
0 commit comments