{"id":24304201,"url":"https://github.com/work-design/rails_com","last_synced_at":"2026-04-19T22:12:19.599Z","repository":{"id":37405661,"uuid":"78701450","full_name":"work-design/rails_com","owner":"work-design","description":"Rails Common Engine","archived":false,"fork":false,"pushed_at":"2025-03-08T04:01:37.000Z","size":7689,"stargazers_count":19,"open_issues_count":7,"forks_count":9,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-03-08T09:39:15.145Z","etag":null,"topics":["design","rails","work"],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/work-design.png","metadata":{"funding":{"github":["qinmingyuan"]},"files":{"readme":"README.en.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-01-12T02:41:33.000Z","updated_at":"2025-03-08T04:01:41.000Z","dependencies_parsed_at":"2024-09-18T06:39:34.753Z","dependency_job_id":"c10a8cd7-9f34-425c-a057-8329872d2f03","html_url":"https://github.com/work-design/rails_com","commit_stats":{"total_commits":3858,"total_committers":7,"mean_commits":551.1428571428571,"dds":"0.0038880248833592645","last_synced_commit":"c852819c58483e9263771393e3f5b036e6821879"},"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_com","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_com/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_com/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_com/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/work-design","download_url":"https://codeload.github.com/work-design/rails_com/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248036063,"owners_count":21037092,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["design","rails","work"],"created_at":"2025-01-17T01:17:00.991Z","updated_at":"2026-04-19T22:12:14.559Z","avatar_url":"https://github.com/work-design.png","language":"Ruby","funding_links":["https://github.com/sponsors/qinmingyuan"],"categories":[],"sub_categories":[],"readme":"# RailsCom\nRails 通用基础库\n\n## 功能\n* examples: puma, configs etc.\n* rails and ruby core extension;\n* methods deal rails model/controller/routes etc.\n* some helpers, for generator uuid based on time and more;\n\n## Module\n* Ruby core extension\n* Rails meta information: Controller/Model/Routes\n* Rails core extension\n  - ActiveStorage sync with url\n  - ActiveStorage copy to mirror\n* Utils\n  - UidHelper\n  - TimeHelper\n  - Jobber\n  - IpHelper\n* 支持通过 ACME 自动申请及更新 SSL 证书\n  \n### Locals support\n\n```erb\n\u003c%= render 'shared/locales' %\u003e\n```\n\n## 支持 enum\n```yaml\n# zh.yml\nactiverecord:\n  enum:\n    notification:\n      receiver_type:\n        User: 全体用户\n        Member: 成员\n```\n\n```ruby\nt.select :receiver_type, options_for_select(Notification.options_i18n(:receiver_type))\n```\n\n* Override \n```yaml\nactiverecord:\n  enum:\n    notification:\n      receiver_type:\n        User: 全体用户\n        Member: # remain this blank\n```\n\n## 注意\n* 仅支持 webpacker, 不再支持 sprockets\n\n## License\nThe gem is available as open source under the terms of the [LGPL License](https://opensource.org/licenses/LGPL-3.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_com","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwork-design%2Frails_com","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_com/lists"}