Add budget investements images specs

This commit is contained in:
Senén Rodero Rodríguez
2017-06-15 09:42:45 +02:00
parent c399692109
commit 673fc66011
9 changed files with 58 additions and 16 deletions

View File

@@ -17,6 +17,7 @@ class Budget
acts_as_paranoid column: :hidden_at
include ActsAsParanoidAliases
# TODO: ROCK&ROR: Set image versions sizes acordingly to enhance page load
has_attached_file :image, styles: { large: "600x600>", medium: "300x300>", thumb: "100x100>" }
belongs_to :author, -> { with_hidden }, class_name: 'User', foreign_key: 'author_id'