Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我是 Ruby on Rails 的新手。我正在使用 Spree 构建一个电子商务应用程序。谁能告诉我所有配置参数的定义位置?例如,大多数模型和控制器都使用 Spree::Config[:currency]。我想知道这个参数实际定义在哪里?
看一眼:
https://github.com/spree/spree/blob/v3.0.1/core/app/models/spree/app_configuration.rb
和相关的类,如:
https://github.com/spree/spree/blob/v3.0.1/core/app/models/spree/preferences/configuration.rb