Skip to content

Commit e7ff077

Browse files
authored
Merge pull request #9675 from jrafanie/fix-constant-typo
More typos, this one is a CONSTANT and in code
2 parents afcc20e + f90dfa2 commit e7ff077

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/controllers/application_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def process_params_options(params)
294294
end
295295

296296
options[:parent] = options[:parent] || @parent
297-
options[:association] = HAS_ASSOCATION[params[:model_name]] if HAS_ASSOCATION.include?(params[:model_name])
297+
options[:association] = HAS_ASSOCIATION[params[:model_name]] if HAS_ASSOCIATION.include?(params[:model_name])
298298
options[:selected_ids] = params[:records]
299299
options
300300
end

app/helpers/application_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ def controller_to_model
163163
"ServiceCatalog" => ServiceTemplate
164164
}.freeze
165165

166-
HAS_ASSOCATION = {
166+
HAS_ASSOCIATION = {
167167
"groups" => "groups",
168168
"users" => "users",
169169
"event_logs" => "event_logs",

0 commit comments

Comments
 (0)