Skip to content

Commit

Permalink
THREESCALE-8102: Make route creation optional (#536)
Browse files Browse the repository at this point in the history
Fix bug getting the config
  • Loading branch information
jlledom authored Sep 16, 2024
1 parent 8d5cc0e commit 014a979
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/integration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ def self.for_model(model)
end

def enabled?
Rails.application.config.integrations.fetch(self.class.name.demodulize.downcase, true)
Rails.application.config.integrations.fetch(self.class.name.demodulize.downcase.to_sym, true)
end
end

0 comments on commit 014a979

Please sign in to comment.