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
fix license picture
[pettanr/pettanr.git]
/
app
/
models
/
author.rb
diff --git
a/app/models/author.rb
b/app/models/author.rb
index
b8c236b
..
0ea5aab
100644
(file)
--- a/
app/models/author.rb
+++ b/
app/models/author.rb
@@
-13,6
+13,7
@@
class Author < Peta::Owner
def supply_default
self.name = 'no name' if self.name.blank?
+ self.user_id = nil
end
def working?
@@
-23,8
+24,4
@@
class Author < Peta::Owner
{:include => {:user => {:artist => {}}} }
end
- def self.show_json_opt
- {:include => {:user => {:artist => {}}} }
- end
-
end