OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
speech balloon template changed
[pettanr/pettanr.git]
/
app
/
models
/
original_picture.rb
diff --git
a/app/models/original_picture.rb
b/app/models/original_picture.rb
index
91a6791
..
722e110
100644
(file)
--- a/
app/models/original_picture.rb
+++ b/
app/models/original_picture.rb
@@
-12,10
+12,6
@@
class OriginalPicture < ActiveRecord::Base
before_destroy :destroy_with_file
- def validate
- errors.add(:filesize, 'size over(1MB)') if self.filesize > 1000000
- end
-
def supply_default art
self.license_id = art.default_license_id if self.license_id.blank?
end