@@ -125,21 +125,21 @@ def javascript_include_tag(*sources)
125
125
126
126
if options [ "debug" ] != false && request_debug_assets?
127
127
sources . map { |source |
128
- if asset = lookup_debug_asset ( source , : type => :javascript )
128
+ if asset = lookup_debug_asset ( source , type : :javascript )
129
129
if asset . respond_to? ( :to_a )
130
130
asset . to_a . map do |a |
131
- super ( path_to_javascript ( a . logical_path , : debug => true ) , options )
131
+ super ( path_to_javascript ( a . logical_path , debug : true ) , options )
132
132
end
133
133
else
134
- super ( path_to_javascript ( asset . logical_path , : debug => true ) , options )
134
+ super ( path_to_javascript ( asset . logical_path , debug : true ) , options )
135
135
end
136
136
else
137
137
super ( source , options )
138
138
end
139
139
} . flatten . uniq . join ( "\n " ) . html_safe
140
140
else
141
141
sources . map { |source |
142
- options = options . merge ( 'integrity' => asset_integrity ( source , : type => :javascript ) ) if integrity
142
+ options = options . merge ( 'integrity' => asset_integrity ( source , type : :javascript ) ) if integrity
143
143
super source , options
144
144
} . join ( "\n " ) . html_safe
145
145
end
@@ -154,21 +154,21 @@ def stylesheet_link_tag(*sources)
154
154
155
155
if options [ "debug" ] != false && request_debug_assets?
156
156
sources . map { |source |
157
- if asset = lookup_debug_asset ( source , : type => :stylesheet )
157
+ if asset = lookup_debug_asset ( source , type : :stylesheet )
158
158
if asset . respond_to? ( :to_a )
159
159
asset . to_a . map do |a |
160
- super ( path_to_stylesheet ( a . logical_path , : debug => true ) , options )
160
+ super ( path_to_stylesheet ( a . logical_path , debug : true ) , options )
161
161
end
162
162
else
163
- super ( path_to_stylesheet ( asset . logical_path , : debug => true ) , options )
163
+ super ( path_to_stylesheet ( asset . logical_path , debug : true ) , options )
164
164
end
165
165
else
166
166
super ( source , options )
167
167
end
168
168
} . flatten . uniq . join ( "\n " ) . html_safe
169
169
else
170
170
sources . map { |source |
171
- options = options . merge ( 'integrity' => asset_integrity ( source , : type => :stylesheet ) ) if integrity
171
+ options = options . merge ( 'integrity' => asset_integrity ( source , type : :stylesheet ) ) if integrity
172
172
super source , options
173
173
} . join ( "\n " ) . html_safe
174
174
end
0 commit comments