-
Notifications
You must be signed in to change notification settings - Fork 166
Remove some DeviceTracking namespace classes #5491
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
31eafd4
c311088
781f2be
e002b94
d10f5a5
5bc50d5
9409c45
e1adcb7
d2d6c37
a187729
4cf3080
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,17 @@ | ||
| class ForgetAllBrowsers | ||
| attr_reader :user, :remember_device_revoked_at | ||
|
|
||
| def initialize(user, remember_device_revoked_at: nil) | ||
| @user = user | ||
| @remember_device_revoked_at = remember_device_revoked_at || Time.zone.now | ||
| end | ||
|
|
||
| def call | ||
| UpdateUser.new( | ||
| user: user, | ||
| attributes: { | ||
| remember_device_revoked_at: remember_device_revoked_at, | ||
| }, | ||
| ).call | ||
| end | ||
| end | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,12 @@ | ||
| require 'rails_helper' | ||
|
|
||
| RSpec.describe DeviceDecorator do | ||
| let(:device) { create(:device) } | ||
| subject(:decorator) { DeviceDecorator.new(device) } | ||
|
|
||
| describe '#nice_name' do | ||
| it 'gives a shortened os and browser name' do | ||
| expect(decorator.nice_name).to eq('Chrome 58 on Windows 10') | ||
| end | ||
| end | ||
| end |
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this was just de-namespaced/moved