Skip to content

Commit

Permalink
Merge pull request #16 from VitaliyAdamkov/patch-1
Browse files Browse the repository at this point in the history
Spree::EditorSetting.new returns default settings
  • Loading branch information
kennyadsl authored Nov 26, 2018
2 parents 93b43ad + da77e0b commit 9dbded0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions app/views/shared/_rich_editor_javascript.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<% @editor_setting = Spree::EditorSetting.new %>
<% is_enabled = @editor_setting[:enabled] %>
<% current_editor = @editor_setting[:current_editor] %>
<% ids = @editor_setting[:ids].split %>
<% editor_settings = SpreeEditor::Config %>
<% is_enabled = editor_settings.enabled %>
<% current_editor = editor_settings.current_editor %>
<% ids = editor_settings.ids.split %>

<% if is_enabled and ids.any? %>
<%= render "shared/editor_engines/#{@editor_setting[:current_editor].underscore}", ids: ids %>
<% if is_enabled && ids.any? %>
<%= render "shared/editor_engines/#{current_editor.underscore}", ids: ids %>
<% end %>

0 comments on commit 9dbded0

Please sign in to comment.