diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index 196dd3327..ddc5ea309 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -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' diff --git a/app/models/account.rb b/app/models/account.rb index 1dd914d62..646e9db78 100644 --- a/app/models/account.rb +++ b/app/models/account.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