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
merge
[pettanr/pettanr.git]
/
app
/
models
/
writing_format.rb
diff --git
a/app/models/writing_format.rb
b/app/models/writing_format.rb
index
f55aa7d
..
5e54402
100644
(file)
--- a/
app/models/writing_format.rb
+++ b/
app/models/writing_format.rb
@@
-29,6
+29,13
@@
class WritingFormat < Peta::SystemResource
def self.list
self.enable_list
end
+
+ def self.enable_list
+ WritingFormat.find(:all).delete_if {|wf|
+ wf.enable? == false
+ }
+ end
+
def self.list_opt
{}
end