Code review: cleanup code
This commit is contained in:
parent
15ac9f3f45
commit
22c1eca61e
3 changed files with 4 additions and 5 deletions
|
@ -2,7 +2,7 @@ class Cerfa < ActiveRecord::Base
|
|||
belongs_to :dossier
|
||||
|
||||
mount_uploader :content, CerfaUploader
|
||||
validates :content, :file_size => { :maximum => 3.megabytes.to_i }
|
||||
validates :content, :file_size => { :maximum => 3.megabytes }
|
||||
|
||||
def empty?
|
||||
content.blank?
|
||||
|
|
|
@ -7,7 +7,7 @@ class PieceJustificative < ActiveRecord::Base
|
|||
alias_attribute :type, :type_de_piece_justificative_id
|
||||
|
||||
mount_uploader :content, PieceJustificativeUploader
|
||||
validates :content, :file_size => { :maximum => 3.megabytes.to_i }
|
||||
validates :content, :file_size => { :maximum => 3.megabytes }
|
||||
|
||||
def empty?
|
||||
content.blank?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue