Skip to content

Commit

Permalink
Kill empty space
Browse files Browse the repository at this point in the history
  • Loading branch information
oeoeaio committed Jul 12, 2017
1 parent 1839a0c commit 842d937
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 6 deletions.
2 changes: 0 additions & 2 deletions app/controllers/enterprises_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,6 @@ def check_permalink
end
end



private

def set_enterprise
Expand Down
4 changes: 0 additions & 4 deletions app/models/enterprise.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand All @@ -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? }
Expand All @@ -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')
Expand Down Expand Up @@ -366,7 +363,6 @@ def can_invoice?
abn.present?
end


protected

def devise_mailer
Expand Down

0 comments on commit 842d937

Please sign in to comment.