diff options
author | Matthew Draper <matthew@trebex.net> | 2018-01-19 17:49:21 +1030 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-01-19 17:49:21 +1030 |
commit | acbcef6094d61eb8c4820295620d170743a4bd71 (patch) | |
tree | f0a6d4d0d145464307c2578a7fb43d799bb8d337 /railties | |
parent | 6559577d1d3fdb16187eda124bb71dd48d217c9d (diff) | |
parent | 5ac6ec54a673e493cddf6bf2eff5b98e52b3c268 (diff) | |
download | rails-acbcef6094d61eb8c4820295620d170743a4bd71.tar.gz rails-acbcef6094d61eb8c4820295620d170743a4bd71.tar.bz2 rails-acbcef6094d61eb8c4820295620d170743a4bd71.zip |
Merge pull request #31732 from koic/enable_autocorrect_for_lint_end_alignment_cop
Enable autocorrect for `Lint/EndAlignment` cop
Diffstat (limited to 'railties')
-rw-r--r-- | railties/lib/rails/generators/generated_attribute.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/railties/lib/rails/generators/generated_attribute.rb b/railties/lib/rails/generators/generated_attribute.rb index 2728459968..f7fd30a5fb 100644 --- a/railties/lib/rails/generators/generated_attribute.rb +++ b/railties/lib/rails/generators/generated_attribute.rb @@ -75,7 +75,7 @@ module Rails when :date then :date_select when :text then :text_area when :boolean then :check_box - else + else :text_field end end @@ -91,7 +91,7 @@ module Rails when :text then "MyText" when :boolean then false when :references, :belongs_to then nil - else + else "" end end |