blocky 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/blocky/content_block.rb +2 -2
- data/lib/blocky/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a702c136a614562b9e75b9ec75870001f677bc5c
|
4
|
+
data.tar.gz: 41b3b26878ee3e5b7291bb33065d48598028d614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1f6f3ded50db48e9bdc25ba2fb1ba8447cc4597ba06130af4cd25c1dda1d3077e5fd575c288cb9a86701af47e680c6f79bbf66ca1f5b33cb7f42c1d6599b1de
|
7
|
+
data.tar.gz: 82757225763c2fd56442cef7d6588c17d8403e4a69b15288a4259ee51e8f548cce77bde007af160ee86abc2d3885ac4dadf1d81e50e9d1264b997d6f1e1f97b1
|
@@ -2,8 +2,8 @@ module Blocky
|
|
2
2
|
class ContentBlock < ActiveRecord::Base
|
3
3
|
before_save :tidy_content
|
4
4
|
|
5
|
-
scope :global, -> { where("page_path IS NULL") }
|
6
|
-
scope :per_page, -> { where("page_path IS NOT NULL") }
|
5
|
+
scope :global, -> { where("page_path IS NULL").order(:name) }
|
6
|
+
scope :per_page, -> { where("page_path IS NOT NULL").order(:page_path) }
|
7
7
|
|
8
8
|
def global?
|
9
9
|
self.page_path.nil?
|
data/lib/blocky/version.rb
CHANGED