OSDN Git Service
(root)
/
pettanr
/
pettanr.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
add Picture
[pettanr/pettanr.git]
/
app
/
models
/
standard_license.rb
1
class StandardLicense < ActiveRecord::Base
2
belongs_to :license
3
4
validates :license_id, :presence => true, :numericality => true, :existence => true
5
validates :artist_name, :presence => true
6
7
def supply_default ar
8
self.artist_name = ar.name
9
end
10
11
def credit
12
nil
13
end
14
15
end