{"id":26062390,"url":"https://github.com/work-design/rails_extend","last_synced_at":"2026-03-08T21:41:22.593Z","repository":{"id":41561467,"uuid":"403557590","full_name":"work-design/rails_extend","owner":"work-design","description":"Rails 框架核心库拓展","archived":false,"fork":false,"pushed_at":"2023-12-14T04:57:26.000Z","size":262,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-08T09:39:23.187Z","etag":null,"topics":[],"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.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2021-09-06T09:13:28.000Z","updated_at":"2024-01-09T06:55:09.000Z","dependencies_parsed_at":"2023-09-24T09:42:58.055Z","dependency_job_id":null,"html_url":"https://github.com/work-design/rails_extend","commit_stats":{"total_commits":203,"total_committers":1,"mean_commits":203.0,"dds":0.0,"last_synced_commit":"cc370d45e3dfaa9d76429304596b0d68f54f98cf"},"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_extend","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_extend/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_extend/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/work-design%2Frails_extend/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/work-design","download_url":"https://codeload.github.com/work-design/rails_extend/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242532339,"owners_count":20144726,"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":[],"created_at":"2025-03-08T15:59:45.511Z","updated_at":"2025-10-16T11:32:05.477Z","avatar_url":"https://github.com/work-design.png","language":"Ruby","funding_links":["https://github.com/sponsors/qinmingyuan"],"categories":[],"sub_categories":[],"readme":"# RailsExtend\n\n[![测试](https://github.com/work-design/rails_extend/actions/workflows/test.yml/badge.svg)](https://github.com/work-design/rails_extend/actions/workflows/test.yml)\n[![Docker构建](https://github.com/work-design/rails_extend/actions/workflows/cd.yml/badge.svg)](https://github.com/work-design/rails_extend/actions/workflows/cd.yml)\n[![Gem](https://github.com/work-design/rails_extend/actions/workflows/gempush.yml/badge.svg)](https://github.com/work-design/rails_extend/actions/workflows/gempush.yml)\n\nRails 通用基础库，对 Rails 的各个组件进行了扩展。\n\n## 功能模块\n* Ruby 核心类扩展，[链接](lib/rails_extend/core)\n* Rails 核心类扩展\n  * ActiveStorage：[链接](lib/rails_com/active_storage) \n    * 通过 url 同步文件；\n    * 将文件复制到镜像服务器；\n* Rails 元信息: \n  * [Model](lib/rails_extend/models.rb)\n  * [Routes / Controllers](lib/rails_extend/routes)\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## 版权\n遵循 [MIT](LICENSE) 协议\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_extend","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwork-design%2Frails_extend","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwork-design%2Frails_extend/lists"}