Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/work-design/rails_com
Rails Common Engine
https://github.com/work-design/rails_com
design rails work
Last synced: about 11 hours ago
JSON representation
Rails Common Engine
- Host: GitHub
- URL: https://github.com/work-design/rails_com
- Owner: work-design
- Created: 2017-01-12T02:41:33.000Z (about 8 years ago)
- Default Branch: main
- Last Pushed: 2024-10-24T03:58:49.000Z (3 months ago)
- Last Synced: 2024-10-24T08:19:54.893Z (3 months ago)
- Topics: design, rails, work
- Language: Ruby
- Homepage:
- Size: 7.05 MB
- Stars: 20
- Watchers: 7
- Forks: 9
- Open Issues: 7
-
Metadata Files:
- Readme: README.en.md
Awesome Lists containing this project
README
# 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```erb
<%= render 'shared/locales' %>
```## 支持 enum
```yaml
# zh.yml
activerecord:
enum:
notification:
receiver_type:
User: 全体用户
Member: 成员
``````ruby
t.select :receiver_type, options_for_select(Notification.options_i18n(:receiver_type))
```* Override
```yaml
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](https://opensource.org/licenses/LGPL-3.0).