1 Star 0 Fork 0

work-design / rails_com

Create your Gitee Account
Explore and code with more than 6 million developers,Free private repositories !:)
Sign up
Clone or download
Cancel
Notice: Creating folder will generate an empty file .keep, because not support in Git
Loading...
README.en.md

RailsCom

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;

Module

  • 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 证书

Locals support

<%= render 'shared/locales' %>

支持 enum

# 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

License

The gem is available as open source under the terms of the LGPL License.

Comments ( 0 )

Sign in for post a comment

About

Rails 通用基础库 spread retract
Ruby and 3 more languages
MIT
Cancel

Releases

No release

Contributors

All

Activities

load more
can not load any more
Ruby
1
https://gitee.com/work-design/rails_com.git
git@gitee.com:work-design/rails_com.git
work-design
rails_com
rails_com
master

Search