lib/rails/generators/component/templates/component.rb.tt in actionview-component-1.16.0 vs lib/rails/generators/component/templates/component.rb.tt in actionview-component-1.17.0
- old
+ new
@@ -1,9 +1,5 @@
class <%= class_name %>Component < <%= parent_class %>
- <%- if requires_content? -%>
- validates :content, presence: true
- <%- end -%>
-
def initialize(<%= initialize_signature %>)
<%= initialize_body %>
end
end