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
rails upgrade to 4
[pettanr/pettanr.git]
/
app
/
models
/
writing_format.rb
diff --git
a/app/models/writing_format.rb
b/app/models/writing_format.rb
index
7060fb2
..
850d735
100644
(file)
--- a/
app/models/writing_format.rb
+++ b/
app/models/writing_format.rb
@@
-31,7
+31,7
@@
def self.list
end
def self.enable_list include_available = false
- r = WritingFormat.
find(:all)
+ r = WritingFormat.
all
unless include_available
r.delete_if {|wf|
wf.enable? == false