mirror of
https://github.com/rickbarrette/redmine_qbo.git
synced 2026-04-02 08:21:57 -04:00
fixed spelling entities
This commit is contained in:
@@ -43,14 +43,14 @@ class WebhookProcessJob < ActiveJob::Base
|
|||||||
name = entity['name']
|
name = entity['name']
|
||||||
id = entity['id']&.to_i
|
id = entity['id']&.to_i
|
||||||
|
|
||||||
entitys = ALLOWED_ENTITIES.dup
|
entities = ALLOWED_ENTITIES.dup
|
||||||
# Allow other plugins to add addtional qbo entities via Hooks
|
# Allow other plugins to add addtional qbo entities via Hooks
|
||||||
Redmine::Hook.call_hook( :qbo_additional_entities ).each do |context|
|
Redmine::Hook.call_hook( :qbo_additional_entities ).each do |context|
|
||||||
next unless context
|
next unless context
|
||||||
entitys.push context
|
entities.push context
|
||||||
log "Added additional QBO entities: #{context}"
|
log "Added additional QBO entities: #{context}"
|
||||||
end
|
end
|
||||||
return unless entitys.include?(name)
|
return unless entities.include?(name)
|
||||||
|
|
||||||
model = name.safe_constantize
|
model = name.safe_constantize
|
||||||
return unless model
|
return unless model
|
||||||
|
|||||||
Reference in New Issue
Block a user