Follow up to 152238b4cff7ab4c4ce63ba26abd23b0abf05129.

This commit is contained in:
Guo Xiang Tan
2019-05-07 09:57:27 +08:00
parent 1e7c4592dc
commit 61cc0f8c5f
2 changed files with 2 additions and 6 deletions

View File

@ -37,11 +37,7 @@ class Embedding < OpenStruct
def self.find def self.find
embedding_args = { id: 'default' } embedding_args = { id: 'default' }
Embedding.settings.each { |s| embedding_args[s] = SiteSetting.get(s) }
Embedding.settings.each do |s|
embedding_args[s] = SiteSetting.public_send(s)
end
Embedding.new(embedding_args) Embedding.new(embedding_args)
end end
end end

View File

@ -53,7 +53,7 @@ module DiscourseNarrativeBot
if (@skip && @state != :end) if (@skip && @state != :end)
skip_tutorial(next_state) skip_tutorial(next_state)
else else
self.public_send(action) self.send(action)
end end
if new_post if new_post