Skip to content

Commit

Permalink
Move item controller config out of editor helper
Browse files Browse the repository at this point in the history
Causes an incompatibility with using `to_partial_path` in nested
controllers that use EditorHelper, e.g. admin/pages_controller
  • Loading branch information
sfnelson committed Jan 29, 2024
1 parent aa855da commit b94ed17
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
katalyst-content (2.1.3)
katalyst-content (2.1.4)
active_storage_validations
katalyst-html-attributes
katalyst-kpop
Expand Down
5 changes: 5 additions & 0 deletions app/controllers/katalyst/content/items_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,11 @@ def store_attachments(item)
end
end
end

# When rendering item forms do not include the controller namespace prefix (katalyst/content)
def prefix_partial_path_with_controller_namespace
false
end
end
end
end
5 changes: 0 additions & 5 deletions app/helpers/katalyst/content/editor_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,6 @@ def content_editor_rich_text_attributes(attributes = {})
},
}.merge_html(attributes)
end

# When rendering item forms do not include the controller namespace prefix (katalyst/content)
def prefix_partial_path_with_controller_namespace
false
end
end
end
end
2 changes: 1 addition & 1 deletion katalyst-content.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |spec|
spec.name = "katalyst-content"
spec.version = "2.1.3"
spec.version = "2.1.4"
spec.authors = ["Katalyst Interactive"]
spec.email = ["[email protected]"]

Expand Down

0 comments on commit b94ed17

Please sign in to comment.