Migrate a few simple, useful methods to the model
Moves trial_days_remaining, trial_duration, trial_days_used, & trial_percentage_complete from the TrialStatusWidget-specific helper into the GitlabSubscription model.
显示
- ee/app/helpers/trial_status_widget_helper.rb 1 个添加, 18 个删除ee/app/helpers/trial_status_widget_helper.rb
- ee/app/models/ee/namespace.rb 3 个添加, 1 个删除ee/app/models/ee/namespace.rb
- ee/app/models/gitlab_subscription.rb 17 个添加, 1 个删除ee/app/models/gitlab_subscription.rb
- ee/app/views/layouts/nav/sidebar/_group_trial_status_widget.html.haml 1 个添加, 1 个删除.../layouts/nav/sidebar/_group_trial_status_widget.html.haml
- ee/spec/helpers/trial_status_widget_helper_spec.rb 0 个添加, 95 个删除ee/spec/helpers/trial_status_widget_helper_spec.rb
- ee/spec/models/ee/namespace_spec.rb 3 个添加, 0 个删除ee/spec/models/ee/namespace_spec.rb
- ee/spec/models/gitlab_subscription_spec.rb 113 个添加, 1 个删除ee/spec/models/gitlab_subscription_spec.rb
加载中
想要评论请 注册 或 登录