Skip to content

Commit 734b26b

Browse files
authored
Merge pull request #758 from lcreid/757-wrapper-class-false
`wrapper_class: false`
2 parents 29aeedf + dccb197 commit 734b26b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+113
-48
lines changed

.rubocop.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,9 +39,7 @@ Layout/SpaceAroundEqualsInParameterDefault:
3939

4040
Metrics/AbcSize:
4141
Max: 18
42-
Exclude:
43-
- "demo/test/**/*"
44-
- "test/**/*"
42+
Enabled: false
4543

4644
Metrics/BlockLength:
4745
Exclude:

README.md

Lines changed: 54 additions & 40 deletions

demo/app/models/user.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class User < ApplicationRecord
33

44
serialize :preferences, coder: JSON
55

6-
validates :email, presence: true, length: { minimum: 5 }, if: :always
6+
validates :email, presence: true, length: { minimum: 5 }, if: :always?
77
validates :terms, acceptance: { accept: true }
88

99
# Conditional (always disabled) validators used in tests
@@ -15,7 +15,7 @@ class User < ApplicationRecord
1515

1616
has_rich_text(:life_story)
1717

18-
def always # rubocop:disable Naming/PredicateMethod
18+
def always?
1919
true
2020
end
2121

-1.26 KB
-1.15 KB
-7.92 KB
4.03 KB
4.07 KB
2.88 KB
-1.1 KB

0 commit comments

Comments
 (0)