Skip to content

Commit

Permalink
fix: linting
Browse files Browse the repository at this point in the history
  • Loading branch information
freesteph committed Jan 17, 2021
1 parent 8d7754b commit c0bdad0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ inherit_mode:

require: rubocop-rails


AllCops:
NewCops: enable
Exclude:
- 'db/**/*'
- 'bin/*'
Expand Down
6 changes: 3 additions & 3 deletions app/models/theme.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ def to_param
end

def older_than?(version)
if !self.version
true
else
if self.version
d1 = make_datetime(self.version)
d2 = make_datetime(version)

d1 < d2
else
true
end
end

Expand Down

0 comments on commit c0bdad0

Please sign in to comment.