blocky 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0352cf149aa7aea132304e59b9efe3ed50d3959b
4
- data.tar.gz: f1ab905b5f3424ef58072d5a35dd184db2c6e599
3
+ metadata.gz: a702c136a614562b9e75b9ec75870001f677bc5c
4
+ data.tar.gz: 41b3b26878ee3e5b7291bb33065d48598028d614
5
5
  SHA512:
6
- metadata.gz: 70cfa2f8f0795d40b92876156ce5126f700b9513bd1bbd42d6add4c6ceaa8176da16bcb224a36001a873be92ad4a71fc614f440bd92e48d5d4c33f96d67e84d3
7
- data.tar.gz: 4e8804e93ab300aca5c3ac9f28310c663cf9af774228dba5bd1d70e9791239f30d714a7d2d36afbb5f305761fe1a5e7006a9a358db4a353ee531ca7f788d9f86
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?
@@ -1,3 +1,3 @@
1
1
  module Blocky
2
- VERSION = "0.0.9"
2
+ VERSION = "0.0.10"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blocky
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison