cloudhdr_rails 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloudhdr_rails/acts_as_cloudhdr.rb +5 -5
- data/lib/cloudhdr_rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e8b3a9d3463d12b2fdd26729b90df4de364364c1
|
4
|
+
data.tar.gz: 285ef86e4bc3182922aef099907c1d2a0fd0a956
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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.
|
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-
|
11
|
+
date: 2015-05-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|