Rubocop compliance for the account model

This commit is contained in:
Brenda Wallace committed 2017-01-14 21:11:02 +13:00
1 parent b603bae1a7
commit 39888d44e2
2 files changed
+1 -3

No files matched your search

-1
View File
@@ -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'
+1 -2
View File
@@ -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