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
embedding_args = { id: 'default' }
Embedding.settings.each do |s|
embedding_args[s] = SiteSetting.public_send(s)
end
Embedding.settings.each { |s| embedding_args[s] = SiteSetting.get(s) }
Embedding.new(embedding_args)
end
end

View File

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