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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c0e0a82d2018f3d838d41f6a07088e2b37edc3a
4
- data.tar.gz: 1b9adc9919310e8560ce61006b78ed2fedfa21b8
3
+ metadata.gz: 31f132b5fa02b2150591d7975e7d7d17b7b2dbd3
4
+ data.tar.gz: a68db5fb78373b4cc2ef32f94e1b69a29fa4f5ea
5
5
  SHA512:
6
- metadata.gz: ca02fbd137f45fbf51dcd40c4a984398b584718dea7afb71c4f585c366b8d66e190db6b54b07d0b36437d9c6c5a31793d9376310a063bf8d39aa9b20edef9c08
7
- data.tar.gz: 5c08d9227310f90e690492a9dcace806885d16621f364e985d0074f05bdba73adc056abb2719f3d7aefeddf80b0cd540c9b721bd10d4149ab0e3151c585c3173
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 = lambda
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 defined?(@@collection_scope) and @@collection_scope.present?
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)
@@ -1,3 +1,3 @@
1
1
  module Manage
2
- VERSION = "1.3.27"
2
+ VERSION = "1.3.28"
3
3
  end
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.27
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-04-02 00:00:00.000000000 Z
12
+ date: 2014-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails