Rails 通用基础库
- examples: puma, configs etc.
- rails and ruby core extension;
- methods deal rails model/controller/routes etc.
- some helpers, for generator uuid based on time and more;
- Ruby core extension
- Rails meta information: Controller/Model/Routes
- Rails core extension
- ActiveStorage sync with url
- ActiveStorage copy to mirror
- Utils
- UidHelper
- TimeHelper
- Jobber
- IpHelper
- 支持通过 ACME 自动申请及更新 SSL 证书
<%= render 'shared/locales' %>
# zh.yml
activerecord:
enum:
notification:
receiver_type:
User: 全体用户
Member: 成员
t.select :receiver_type, options_for_select(Notification.options_i18n(:receiver_type))
- Override
activerecord:
enum:
notification:
receiver_type:
User: 全体用户
Member: # remain this blank
- 仅支持 webpacker, 不再支持 sprockets
The gem is available as open source under the terms of the LGPL License.