projects
/
opencantine5
/
opencantine5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
project home
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
v1.0 bĂȘta
[opencantine5/opencantine5.git]
/
app
/
models
/
blog.rb
diff --git a/app/models/blog.rb
b/app/models/blog.rb
new file mode 100644
(file)
index 0000000..
fe086b0
--- /dev/null
+++ b/
app/models/blog.rb
@@ -0,0
+1,5
@@
+class Blog < ApplicationRecord
+
+ default_scope { order(Arel.sql('blogs.id DESC')) }
+
+end