File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1313 config . eager_load = false
1414
1515 # Configure static file server for tests with Cache-Control for performance.
16- if Rails . version . start_with? ( "5 " )
16+ if Rails . version . start_with? ( "4 " )
1717 config . public_file_server . enabled = true
1818 config . public_file_server . headers = { 'Cache-Control' => 'public, max-age=3600' }
1919 else
Original file line number Diff line number Diff line change 11# Be sure to restart your server when you modify this file.
22
33# Version of your assets, change this if you want to expire all your assets.
4- if Rails . version . starts_with ?( "4" )
4+ if Rails . version . start_with ?( "4" )
55 Rails . application . config . assets . version = '1.0'
66end
77
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ def ensure_app_given
6060 end
6161
6262 def rails_flexible_post ( path , outer_params , jsonrpc_params = nil )
63- if Rails . version . starts_with ?( "4" )
63+ if Rails . version . start_with ?( "4" )
6464 post path , outer_params . merge ( "params" => jsonrpc_params )
6565 else
6666 jsonrpc_params ||= { }
You can’t perform that action at this time.
0 commit comments