Skip to content

Commit 7c37481

Browse files
committed
lints
1 parent 1947a4e commit 7c37481

3 files changed

Lines changed: 1 addition & 3 deletions

File tree

docs/guide/generators.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,6 @@ bin/rails generate view_component:component Example title --inline
164164
invoke erb
165165
```
166166

167-
168167
### Use [call method](/guide/templates.html#call) (no template file)
169168

170169
```console

lib/generators/view_component/abstract_generator.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
module ViewComponent
44
module AbstractGenerator
55
def copy_view_file
6-
template("component.html.#{engine_name}", destination) unless (options["inline"] || options["call"])
6+
template("component.html.#{engine_name}", destination) unless options["inline"] || options["call"]
77
end
88

99
private

test/sandbox/test/generators/component_generator_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,6 @@ def test_invoking_erb_template_engine
132132
assert_file "app/components/user_component.html.erb"
133133
end
134134

135-
136135
def test_invoking_slim_template_engine
137136
run_generator %w[user --template-engine slim]
138137

0 commit comments

Comments
 (0)