Revision 4f40ad8a
Added by Marc Dequènes about 14 years ago
- ID 4f40ad8a3f9120f7cdedcccfc20aab0174a65ed7
app/models/artwork_size.rb | ||
---|---|---|
validates_uniqueness_of :width, :scope => [:height], :message => _("is invalid, because this (height, width) couple already exist")
|
||
|
||
def human_size
|
||
"#{height} x #{width}"
|
||
"#{height} x #{width} mm"
|
||
end
|
||
end
|
Also available in: Unified diff
[cosmetic] artwork_sizes height and width are now integers in the DB, and displayed with the corresponding unit (closes #14)