manage 1.3.27 → 1.3.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/controllers/manage/resource_controller.rb +3 -3
- data/lib/manage/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: 31f132b5fa02b2150591d7975e7d7d17b7b2dbd3
|
4
|
+
data.tar.gz: a68db5fb78373b4cc2ef32f94e1b69a29fa4f5ea
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9ee8581b45b8cfdad49e52c6fac5fcf1f30e53822780b92947ebb3312e25ef70225d7767dfba95bca53da630d3420fd8dd71eb6ec5a97f570704e268626fd67b
|
7
|
+
data.tar.gz: 811f37b61eb8bf675af093b7c3f8197dc2c37f436e9adfdb1f92d80eef855a4269ed14b3eec181faa638e10cfc688fb5c99eabda8e4336e642bacf20bb84723a
|
@@ -39,13 +39,13 @@ class Manage::ResourceController < Manage::ApplicationController
|
|
39
39
|
end
|
40
40
|
|
41
41
|
def self.collection_scope lambda
|
42
|
-
@@collection_scope
|
42
|
+
self.class_variable_set(:"@@collection_scope", lambda)
|
43
43
|
end
|
44
44
|
|
45
45
|
def collection
|
46
46
|
filtered_collection = end_of_association_chain
|
47
|
-
if
|
48
|
-
filtered_collection = @@collection_scope.call(filtered_collection)
|
47
|
+
if self.class.class_variable_defined?(:"@@collection_scope") and self.class.class_variable_get(:"@@collection_scope").present?
|
48
|
+
filtered_collection = self.class.class_variable_get(:"@@collection_scope").call(filtered_collection)
|
49
49
|
end
|
50
50
|
|
51
51
|
assocation = filtered_collection.page(params[:page] || 1)
|
data/lib/manage/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: manage
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
4
|
+
version: 1.3.28
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Empower United
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-
|
12
|
+
date: 2014-05-08 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|