From 39888d44e20732e37b1ec505f1937df080d4a37a Mon Sep 17 00:00:00 2001 From: Brenda Wallace Date: Sat, 14 Jan 2017 21:11:02 +1300 Subject: [PATCH] Rubocop compliance for the account model --- .rubocop_todo.yml | 1 - app/models/account.rb | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) 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