cloudhdr_rails 0.0.8 → 0.0.9

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: b9897a6de237db89f1ac090d305364b350d374d0
4
- data.tar.gz: 6da87b99805ad07064a92a80224e4c871b00c4e0
3
+ metadata.gz: e8b3a9d3463d12b2fdd26729b90df4de364364c1
4
+ data.tar.gz: 285ef86e4bc3182922aef099907c1d2a0fd0a956
5
5
  SHA512:
6
- metadata.gz: f381bcbd3c508be821a23aea778a7249ee72427f634d0043f2250d9075e8d70b4edfa65898d24dc9fccece6b233574e5ad6c51a5faeb824972bdb28fc5d82ed1
7
- data.tar.gz: 641df83c634bf8c76188bc8860414ba0c03ca8c16a619dc875e5188d6f0fcba89cb098bf0220a1c49f5f8d11001dd9ab4886b87e64635ef204add076b6d3d6d7
6
+ metadata.gz: 4624ebc4b253e0c779f0778cc4cfbf99a1b946164a73fb62da0d92c10bfcc0aa3eb162adf00680ad56ec8713e3da43652df161e95025089dfb609afff36703f9
7
+ data.tar.gz: 0d4aaba750d2d5fc0f2a479f97f9c8e4bf1e7a3530ed8aca36930c6e2f2fb41a4760bf172061964a3dc360a70bfd9fa6e60444b4b6bf20990485b6762f0aaffc
@@ -174,14 +174,14 @@ module ActsAsCloudhdr
174
174
 
175
175
  has_many :cloudhdr_jobs, :as => :image
176
176
 
177
- scope :top_level, where({:parent_id=>nil}) if respond_to?(:parent_id)
178
- scope :top_level, where({}) if !respond_to?(:parent_id)
177
+ scope :top_level, -> { where({:parent_id=>nil}) if respond_to?(:parent_id) }
178
+ scope :top_level, -> { where({}) if !respond_to?(:parent_id) }
179
179
  # we can't just call this next scope 'parents' because that is already
180
180
  # taken and returns an array of parent classes of the ruby object
181
- scope :parent_items, where({:parent_id=>nil}) if respond_to?(:parent_id)
182
- scope :parent_items, where({}) if !respond_to?(:parent_id)
181
+ scope :parent_items, -> { where({:parent_id=>nil}) if respond_to?(:parent_id) }
182
+ scope :parent_items, -> { where({}) if !respond_to?(:parent_id) }
183
183
 
184
- scope :thumbnails, where("#{base_class.table_name}.parent_id is not null")
184
+ scope :thumbnails, -> { where("#{base_class.table_name}.parent_id is not null") }
185
185
 
186
186
  #just a writer, the reader is below
187
187
  #cattr_accessor :cloudhdr_configuration
@@ -1,3 +1,3 @@
1
1
  module CloudhdrRails
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudhdr_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Green
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails