Skip to content

Commit 5834995

Browse files
committed
Make RuboCop happy
1 parent 6ee52a2 commit 5834995

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/inertia_rails/generators/controller_template_base.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ class ControllerTemplateBase < Rails::Generators::NamedBase
1111
default: Helper.guess_the_default_framework
1212

1313
class_option :typescript, type: :boolean, desc: 'Whether to use TypeScript',
14-
default: Helper.guess_typescript
14+
default: Helper.uses_typescript?
1515

1616
argument :actions, type: :array, default: [], banner: 'action action'
1717

lib/inertia_rails/generators/helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def guess_the_default_framework(package_json_path = DEFAULT_PACKAGE_PATH)
2323
end
2424
end
2525

26-
def guess_typescript
26+
def uses_typescript?
2727
Rails.root.join('tsconfig.json').exist?
2828
end
2929

0 commit comments

Comments
 (0)