Skip to content
This repository was archived by the owner on Dec 13, 2022. It is now read-only.

Update rails 7.0#147

Draft
tjoyal wants to merge 5 commits into
masterfrom
update-rails-7.0
Draft

Update rails 7.0#147
tjoyal wants to merge 5 commits into
masterfrom
update-rails-7.0

Conversation

@tjoyal

@tjoyal tjoyal commented May 3, 2022

Copy link
Copy Markdown
Collaborator

<div class="Polaris-FormLayout">
<%= f.polaris_select(:service_name, available_handlers.map { |handler| [handler.label, handler.to_s] }, { prompt: "Select an action" }, { data: { handler: true } }) %>

<%= f.fields_for :settings, f.object.settings do |ff| %>

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Other than guessing, I couldn't explain with a reproductible fact why this used to work in the first place and what made rails 7.0 upgrade break it.

It shouldn't have worked before since f.object.settings is a Hash and should have been treated as options, not as a record object....

Comment thread Gemfile
git_source(:github) { |repo| "https://github.com/#{repo}.git" }

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem 'rails', '~> 6.1'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread Gemfile
gem 'web-console', '>= 3.3.0'
gem 'listen', '~> 3.2'
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem 'spring'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread Gemfile

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'
gem 'sprockets-rails', :require => 'sprockets/railtie'

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread app/models/rule_event.rb
shopify_identifier: @shopify_identifier,
hooklys_identifier: @hooklys_identifier,
timestamp: @details.first.timestamp.to_s(:db),
timestamp: @details.first.timestamp.to_fs(:db),

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

DEPRECATION WARNING: Time#to_s(:db) is deprecated. Please use Time#to_fs(:db) instead.

@tjoyal tjoyal requested a review from christianblais May 3, 2022 13:36

@christianblais christianblais left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ship it!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants