mirror of
https://github.com/Growstuff/growstuff.git
synced 2026-10-21 14:34:22 -04:00
Rubocop compliance for the account model
This commit is contained in:
1 parent
b603bae1a7
commit
39888d44e2
2 files changed
+1
-3
No files matched your search
@@ -338,7 +338,6 @@ Style/MultilineMethodCallBraceLayout:
|
||||
- 'app/controllers/application_controller.rb'
|
||||
- 'app/controllers/authentications_controller.rb'
|
||||
- 'app/controllers/seeds_controller.rb'
|
||||
- 'app/models/account.rb'
|
||||
- 'spec/controllers/order_items_controller_spec.rb'
|
||||
- 'spec/helpers/gardens_helper_spec.rb'
|
||||
- 'spec/helpers/harvests_helper_spec.rb'
|
||||
|
||||
@@ -9,8 +9,7 @@ class Account < ActiveRecord::Base
|
||||
before_create do |account|
|
||||
unless account.account_type
|
||||
account.account_type = AccountType.find_or_create_by(name:
|
||||
Growstuff::Application.config.default_account_type
|
||||
)
|
||||
Growstuff::Application.config.default_account_type)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in new issue
Block a user