Finish MVP for content editing
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
class EditContentButtonComponent < ViewComponent::Base
|
||||
def initialize(context:, key:, rich_text: false, redirect_to: nil)
|
||||
@editable_content = EditableContent.find_or_create_by(context:, key:, rich_text:)
|
||||
@redirect_to = redirect_to
|
||||
end
|
||||
end
|
||||
Reference in New Issue
Block a user