docbrown/app/models
rhymes c8abbe9d60 Pro: memberships (#3461)
* Add ProMembership model

* Implement ProMembershipsController#create

* Implement basic ProMembershipsController#show

* Add ProMembership to ledger

* Populate user history after pro subscription is created

* Add fields for expiration notifications

* Add ProMemberships::ExpirationNotifier to notify users of expiring memberships

* Add tasks for recurring jobs to notify users of expiration

* Add auto_recharge column to ProMembership

* Add ProMemberships::Biller (incomplete)

* Fix specs

* Add ProMembership to Administrate

* Fix spec

* Add has_enough_credits? to User and Organization

* Add Payments::Customer class

* Finish ProMembership::Biller functionality

* Fix ProMemberships::Creator check for credits

* Disable destroy actions for ProMembershipsController

* Correctly authenticate ProMembershipsController actions

* Make sure only pro user's history can be indexed

* Add ProMembershipsController#update action for auto recharge

* Use regular AR to save new credits and add touch to the purchaser

* Clarify Pro membership create policy

* Display information about an existing pro membership

* Add UI to show page

* Add system test for Pro membership creation

* Implement edit membership

* Make sure users with pro memberships can access history and dashboard pro

* Fix padding issue

* Show a different text for a user that has credits but not enough for Pro

* Move Pro Membership functionality inside settings

* Update Pro Membership link in email notifications

* Bust all relevant caches

* Add the Pro checkmark around the website

* Use Users::ResaveArticlesJob instead of delay

* Add/remove user from pro-members chat channel

* Use the appropriate Pro checkmark

* Remove unfinished pro elements

* Remove checkmark JS
2019-09-24 10:38:54 -07:00
..
concerns
webhook Define Doorkeeper::Application association (#4065) [ci skip] 2019-09-19 10:28:55 -04:00
api_secret.rb
application_record.rb
article.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
backup_data.rb Add functionality to remove and recover identity (#3377) 2019-07-03 12:01:16 -04:00
badge.rb Add badges to key tags (#3074) 2019-06-07 19:09:43 -04:00
badge_achievement.rb Implemented ActiveJob for badge_achievements#send_email_notification (#2962) 2019-05-27 09:44:38 -04:00
block.rb
broadcast.rb
buffer_update.rb Adjust BufferUpdatesController's authorization (#4070) 2019-09-20 11:50:34 -07:00
chat_channel.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
chat_channel_membership.rb Remove hardcoded image from chat channel images (#3235) 2019-06-19 10:12:58 -04:00
classified_listing.rb Listings creation and update API (#4014) 2019-09-24 07:03:52 -07:00
collection.rb Collection: remove optional user and add tests (#3383) 2019-08-02 10:15:04 -04:00
comment.rb Move index.delay.delete_object calls to ActiveJob (#4028) 2019-09-17 14:10:38 -07:00
credit.rb Credits ledger (#3395) 2019-07-09 10:11:18 -04:00
display_ad.rb Update Complexity linters (#3507) [ci skip] 2019-08-01 16:38:27 -04:00
display_ad_event.rb Update Complexity linters (#3507) [ci skip] 2019-08-01 16:38:27 -04:00
email_message.rb
event.rb Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
feedback_message.rb Add report abuse link to listings (#2684) 2019-05-04 09:06:42 -04:00
follow.rb Add backend functionality for muting users you follow (#3240) 2019-06-20 11:28:50 -04:00
github_issue.rb Fixed some Style/* rubocop violations (#2314) 2019-04-06 14:24:33 -04:00
github_repo.rb
html_variant.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
html_variant_success.rb
html_variant_trial.rb
identity.rb Rename uncommunicative variables (#3890) 2019-09-02 13:05:07 -04:00
job_opportunity.rb Enable Layout/AlignParameters (#2340) 2019-04-08 18:47:34 -04:00
languages.rb Change format of the user languages_settings #2369 (#2496) 2019-04-30 17:01:19 -04:00
mention.rb Fix mention validation when validating an empty instance (#3188) 2019-06-18 21:36:01 -04:00
message.rb Rename uncommunicative variables (#3890) 2019-09-02 13:05:07 -04:00
note.rb
notification.rb Fix notifications past aggregation query (#3998) 2019-09-10 11:27:23 -04:00
notification_subscription.rb Finalize UI for all types of notification settings (#3164) 2019-06-14 18:28:38 -04:00
organization.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
organization_membership.rb Allow users to belong to multiple orgs (#2583) 2019-06-04 09:30:52 -04:00
page.rb Move bust_cache methods in own jobs (#3071) 2019-06-24 13:28:25 -04:00
page_view.rb Pro: add referrers to dashboard and single article stats (#3295) 2019-06-25 13:58:09 -04:00
podcast.rb Introduced published field to podcasts (#3593) 2019-08-01 09:29:13 -04:00
podcast_episode.rb Introduced published field to podcasts (#3593) 2019-08-01 09:29:13 -04:00
poll.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
poll_option.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
poll_skip.rb Fixed rubocop issues, new .rubocop_todo.yml (#3255) 2019-06-21 14:26:39 -04:00
poll_vote.rb Remove double presence validator in PollVote (#3187) [ci skip] 2019-06-17 10:28:05 -04:00
pro_membership.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00
profile_pin.rb Fix Typos (#3510) 2019-07-22 12:56:48 -04:00
push_notification_subscription.rb
rating_vote.rb Add page for users to "manage" their posts after publication (distribution, etc.) (#2627) 2019-05-01 09:00:09 -04:00
reaction.rb Add new mod links and tooling (#4009) 2019-09-12 00:11:01 -04:00
role.rb Adjust BufferUpdatesController's authorization (#4070) 2019-09-20 11:50:34 -07:00
search_keyword.rb
sponsorship.rb Sponsorship: business logic (step 2) (#3440) 2019-07-10 16:40:56 -04:00
tag.rb Rename uncommunicative variables (#3890) 2019-09-02 13:05:07 -04:00
tag_adjustment.rb Allow admins to undo a tag adjustment (#3653) 2019-08-14 09:26:26 -04:00
tweet.rb Replace try with safe navigation operator (#3988) [ci skip] 2019-09-11 16:16:37 -04:00
user.rb Pro: memberships (#3461) 2019-09-24 10:38:54 -07:00