We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 266433c + ff2b53d commit f8b8561Copy full SHA for f8b8561
app/components/alchemy/ingredients/base_editor.rb
@@ -178,7 +178,7 @@ def ingredient_role
178
content = "#{icon} #{content}".html_safe
179
end
180
181
- if ingredient.has_validations?
+ if presence_validation?
182
"#{content}<span class='validation_indicator'>*</span>".html_safe
183
else
184
content
spec/components/alchemy/ingredients/base_editor_spec.rb
@@ -186,7 +186,7 @@
186
187
188
it "does not show any validation indicator" do
189
- is_expected.to have_selector(".validation_indicator")
+ is_expected.to_not have_selector(".validation_indicator")
190
191
192
0 commit comments