Clean up settings/preferences controller (#2237)
* Add missing fields group on preferences page * Clean up settings/preferences controller * Extract a UserSettingsDecorator
Showing
- app/controllers/settings/preferences_controller.rb 20 additions, 20 deletionsapp/controllers/settings/preferences_controller.rb
- app/lib/user_settings_decorator.rb 56 additions, 0 deletionsapp/lib/user_settings_decorator.rb
- app/views/settings/preferences/show.html.haml 4 additions, 3 deletionsapp/views/settings/preferences/show.html.haml
- spec/controllers/settings/preferences_controller_spec.rb 34 additions, 5 deletionsspec/controllers/settings/preferences_controller_spec.rb
- spec/lib/user_settings_decorator_spec.rb 45 additions, 0 deletionsspec/lib/user_settings_decorator_spec.rb
app/lib/user_settings_decorator.rb
0 → 100644
spec/lib/user_settings_decorator_spec.rb
0 → 100644
Please register or sign in to comment