File tree Expand file tree Collapse file tree 2 files changed +3
-3
lines changed
example_app_generator/spec Expand file tree Collapse file tree 2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,14 @@ require_file_stub 'config/environment' do
37
37
module ExampleApp
38
38
class Application < Rails ::Application
39
39
config . eager_load = false
40
- if Rails ::VERSION ::STRING . start_with? ( '7' )
40
+ if Rails ::VERSION ::STRING . to_f >= 7.0
41
41
config . active_support . cache_format_version = 7.0
42
42
end
43
43
44
44
# Don't care if the mailer can't send.
45
45
config . action_mailer . raise_delivery_errors = false unless ENV [ 'NO_ACTION_MAILER' ]
46
46
if ENV [ 'CUSTOM_PREVIEW_PATH' ]
47
- if Rails ::VERSION ::STRING . start_with? ( ' 7.1' )
47
+ if Rails ::VERSION ::STRING . to_f >= 7.1
48
48
config . action_mailer . preview_paths = [ ENV [ 'CUSTOM_PREVIEW_PATH' ] ]
49
49
else
50
50
config . action_mailer . preview_path = ENV [ 'CUSTOM_PREVIEW_PATH' ]
Original file line number Diff line number Diff line change @@ -30,7 +30,7 @@ def capture_exec(*ops)
30
30
CaptureExec . new ( out , $?. exitstatus )
31
31
end
32
32
33
- if Rails ::VERSION ::STRING . start_with? ( ' 7.1' )
33
+ if Rails ::VERSION ::STRING . to_f >= 7.1
34
34
let ( :expected_custom_path ) { "/custom/path\n #{ ::Rails . root } /test/mailers/previews" }
35
35
let ( :expected_rspec_path ) { "#{ ::Rails . root } /spec/mailers/previews\n #{ ::Rails . root } /test/mailers/previews" }
36
36
You can’t perform that action at this time.
0 commit comments