Skip to content

Commit 9804b43

Browse files
committed
rails 8 updates
1 parent 47abdd5 commit 9804b43

File tree

4 files changed

+6
-13
lines changed

4 files changed

+6
-13
lines changed

app/models/gemini_connection.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,11 +56,11 @@ class CapabilityError < WalletCreationError; end
5656
with_active_connection.with_expired_tokens
5757
}
5858

59-
enum recipient_id_status: {
59+
enum :recipient_id_status, {
6060
pending: 0,
6161
duplicate: 1,
6262
present: 2
63-
}, _prefix: :recipient_id
63+
}
6464

6565
def provider_sym
6666
:gemini

app/models/potential_payment.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ class PotentialPayment < ApplicationRecord
66
MANUAL = "manual".freeze
77

88
# valid wallet_providers
9-
enum wallet_provider: {uphold: 0, paypal: 1, gemini: 2, bitflyer: 3}
9+
enum :wallet_provider, {uphold: 0, paypal: 1, gemini: 2, bitflyer: 3}
1010

1111
belongs_to :payout_report
1212
belongs_to :publisher

app/models/u2f_registration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
class U2fRegistration < ApplicationRecord
44
FORMATS = %w[u2f webauthn]
5-
enum format: FORMATS.zip(FORMATS).to_h
5+
enum :format, FORMATS.zip(FORMATS).to_h
66

77
belongs_to :publisher
88
end

config/routes.rb

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -105,19 +105,12 @@
105105
devise_for :publishers, only: :omniauth_callbacks, controllers: {omniauth_callbacks: "publishers/omniauth_callbacks"}
106106

107107
resources :channels, only: %i[destroy] do
108-
resources :crypto_address_for_channels, only: %i[index create delete] do
109-
collection do
110-
post :change_address
111-
get :generate_nonce
112-
end
113-
end
114-
115108
member do
116109
get :verification_status
117110
get :cancel_add
118111
get :total_verified_count
119112
delete :destroy
120-
resources :tokens, only: %() do
113+
resources :tokens, except: [:index, :create, :new, :show, :update, :destroy, :edit] do
121114
get :reject_transfer, to: "channel_transfer#reject_transfer"
122115
end
123116
end
@@ -182,7 +175,7 @@
182175
member do
183176
get :verification_status
184177
delete :destroy
185-
resources :tokens, only: %() do
178+
resources :tokens, except: [:index, :create, :new, :show, :update, :destroy, :edit] do
186179
get :reject_transfer, to: "channel_transfer#reject_transfer"
187180
end
188181
end

0 commit comments

Comments
 (0)