Skip to content

Commit 518c791

Browse files
committed
Inherit from Phlex::HTML and avoid the Components inheritance issues
1 parent 2efc1c6 commit 518c791

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

lib/superform/rails.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module Superform
44
module Rails
55
# The `ApplicationComponent` is the superclass for all components in your application.
6-
Component = ::Components::Base
6+
Component = ::Phlex::HTML
77

88
# A Phlex::HTML view module that accepts a model and sets a `Superform::Namespace`
99
# with the `Object#model_name` as the key and maps the object to form fields

spec/spec_helper.rb

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,6 @@
44
require "phlex"
55
require "rails"
66

7-
module Components
8-
Base = Phlex::HTML
9-
end
10-
117
RSpec.configure do |config|
128
# Enable flags like --only-failures and --next-failure
139
config.example_status_persistence_file_path = ".rspec_status"

0 commit comments

Comments
 (0)