docbrown/app/controllers/api/v0
rhymes cc53b55a4a
[deploy] Switch decorators from Draper to Rails builtin decorations (#6040)
* Convert SponsorshipDecorator to Rails decorator

* Remove empty ReactionDecorator

* Rename SponsorshipDecorator#level_color_hex to level_background_color

* Convert CommentDecorator to Rails decorator

* Add specs and fix bugs for NotificationDecorator

* Convert NotificationDecorator to Rails decorator

* Add specs and fix bugs for OrganizationDecorator

* Convert OrganizationDecorator to Rails decorator

* Add specs to PodcastEpisodeDecorator and fix bugs

* Convert PodcastEpisodeDecorator to a Rails decorator

* Add missing specs for ArticleDecorator and fix bugs

* Convert ArticleDecorator to Rails decorator

* Add missing specs to UserDecorator and fix issues

* Convert UserDecorator to Rails decorator

* Add .decorate_collection method

* Add decorator for AR relations and remove Draper

* Rename BaseDecorator back to ApplicationDecorator

* Rename .decorate_ back to .decorate

* Restore decorate_collection (WTH)

* Add decorated?

* Fix bugs and failing specs

* Decoration should always be explicit
2020-02-17 09:32:32 -05:00
..
analytics_controller.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
api_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
articles_controller.rb [deploy] Switch decorators from Draper to Rails builtin decorations (#6040) 2020-02-17 09:32:32 -05:00
chat_channels_controller.rb Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
classified_listings_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
comments_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
followers_controller.rb Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
followings_controller.rb Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
follows_controller.rb Migrate Users/FollowJob to Sidekiq (#5403) 2020-01-08 15:03:18 -05:00
github_repos_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
podcast_episodes_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
reactions_controller.rb Refactor API Reactions controller and add specs (#5936) 2020-02-07 12:39:24 -05:00
tags_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
users_controller.rb Improve API controllers efficiency by selecting only columns needed for serialization (#5805) [deploy] 2020-02-06 07:36:56 -05:00
videos_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00
webhooks_controller.rb Small API controllers refactoring (#6021) [deploy] 2020-02-12 11:51:42 -05:00