From 842d9376c972b7e0da56200fba7b45b72ddefff1 Mon Sep 17 00:00:00 2001 From: Rob Harrington Date: Fri, 7 Jul 2017 16:54:01 +1000 Subject: [PATCH] Kill empty space --- app/controllers/enterprises_controller.rb | 2 -- app/models/enterprise.rb | 4 ---- 2 files changed, 6 deletions(-) diff --git a/app/controllers/enterprises_controller.rb b/app/controllers/enterprises_controller.rb index c85344f405a8..371fc9f2b876 100644 --- a/app/controllers/enterprises_controller.rb +++ b/app/controllers/enterprises_controller.rb @@ -37,8 +37,6 @@ def check_permalink end end - - private def set_enterprise diff --git a/app/models/enterprise.rb b/app/models/enterprise.rb index 0e6a529d7b85..6ce3928ed2fa 100644 --- a/app/models/enterprise.rb +++ b/app/models/enterprise.rb @@ -67,7 +67,6 @@ class Enterprise < ActiveRecord::Base supports_s3 :logo supports_s3 :promo_image - validates :name, presence: true validate :name_is_unique validates :sells, presence: true, inclusion: {in: SELLS} @@ -79,7 +78,6 @@ class Enterprise < ActiveRecord::Base validate :enforce_ownership_limit, if: lambda { owner_id_changed? && !owner_id.nil? } validates_length_of :description, :maximum => 255 - before_save :confirmation_check, if: lambda { email_changed? } before_validation :initialize_permalink, if: lambda { permalink.nil? } @@ -96,7 +94,6 @@ class Enterprise < ActiveRecord::Base after_rollback :restore_permalink - scope :by_name, order('name') scope :visible, where(visible: true) scope :confirmed, where('confirmed_at IS NOT NULL') @@ -366,7 +363,6 @@ def can_invoice? abn.present? end - protected def devise_mailer