Refactor.

This commit is contained in:
taitus
2017-09-13 18:07:18 +02:00
committed by Senén Rodero Rodríguez
parent 51c53b6f31
commit a0603985ef
8 changed files with 243 additions and 260 deletions

View File

@@ -8,6 +8,7 @@ class Budget
include Followable
include Communitable
include Imageable
include Mappable
include Documentable
documentable max_documents_allowed: 3,
max_file_size: 3.megabytes,
@@ -27,8 +28,6 @@ class Budget
has_many :valuators, through: :valuator_assignments
has_many :comments, as: :commentable
has_many :milestones
has_one :map_location, dependent: :destroy
accepts_nested_attributes_for :map_location, allow_destroy: true
validates :title, presence: true
validates :author, presence: true