-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Rails 7.1 support #5359
Merged
Merged
Rails 7.1 support #5359
Changes from all commits
Commits
Show all changes
24 commits
Select commit
Hold shift + click to select a range
ee30487
Update ransack to last released v4 version.
peterberkenbosch 0a276d2
Specifiy coder for serialize attributes.
peterberkenbosch 7906cf5
Remove unused action on the before_action callback
peterberkenbosch aab04a3
Use 'main' instead of 'master'
peterberkenbosch db5fd5f
Add Rails 7.1 supported database_cleaner gem
peterberkenbosch 8f1ec11
Fix `alias_method` used on an aliased attribute
peterberkenbosch a4aea38
Allow Rails 7.1 and up
peterberkenbosch bf87f5a
Use correct renamed behavior module for testing.
peterberkenbosch e683524
Use up-to-date rspec-rails gem
peterberkenbosch eeaf72c
Add Rails 7.1 to Circle CI Matrix
peterberkenbosch 6e6d66e
Bump axe-core specs to fix false negative in admin
peterberkenbosch a240dab
Default to Rails 7.1 in development
kennyadsl e78a836
Remove deprecated usage of alias_attributes
kennyadsl 0a97cc2
Fix Set-Cookie header domain in tests for Rails 7.1
kennyadsl fb15c4c
Fix warining about SchemaMigration no longer inheriting from ActiveRe…
spaghetticode de9d3ad
Replace explicit shipping_address and billing_address attributes
spaghetticode 9b194e2
Convert helper output_buffer to string
spaghetticode 532dec4
Fix the encrypted preference spec by allowing other calls to ENV
elia 5ef1803
Setup the active storage configuration
elia 85b35ad
Fix preview paths to work with Rails 7.1
kennyadsl f6047e7
Don't define the `with_values` scope for Rails 7.1+
peterberkenbosch 95a0b09
Avoid using deprecated constants when logging VC rendering
elia 2739f7b
Add a note about the value of `action_dispatch.show_exceptions`
elia 66b325f
Run the solidus installer on Rails 7.1
elia File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
# frozen_string_literal: true | ||
|
||
class Spree::Preference < Spree::Base | ||
serialize :value | ||
serialize :value, coder: YAML | ||
|
||
validates :key, presence: true, uniqueness: { allow_blank: true, case_sensitive: true } | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
# frozen_string_literal: true | ||
|
||
require "ransack/version" | ||
|
||
return unless Ransack::VERSION.start_with?("4.1.") | ||
|
||
module RansackNodeConditionPatch | ||
private | ||
|
||
# Waiting for https://github.com/activerecord-hackery/ransack/pull/1468 | ||
def casted_array?(predicate) | ||
predicate.is_a?(Arel::Nodes::Casted) && predicate.value.is_a?(Array) | ||
end | ||
|
||
Ransack::Nodes::Condition.prepend(self) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -7,14 +7,15 @@ | |
store = Spree::Store.first! | ||
|
||
orders = [] | ||
|
||
orders << Spree::Order.create!( | ||
number: "R123456789", | ||
email: "[email protected]", | ||
item_total: 150.95, | ||
adjustment_total: 150.95, | ||
total: 301.90, | ||
shipping_address: Spree::Address.first, | ||
billing_address: Spree::Address.last | ||
ship_address: Spree::Address.first, | ||
bill_address: Spree::Address.last | ||
) | ||
|
||
orders << Spree::Order.create!( | ||
|
@@ -23,8 +24,8 @@ | |
item_total: 15.95, | ||
adjustment_total: 15.95, | ||
total: 31.90, | ||
shipping_address: Spree::Address.first, | ||
billing_address: Spree::Address.last | ||
ship_address: Spree::Address.first, | ||
bill_address: Spree::Address.last | ||
) | ||
|
||
orders[0].line_items.create!( | ||
|
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Good finding! Did you check if we also have a (unused) route for this action?