context_aware_scope 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{context_aware_scope}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Simplificator", "Fabio Kuhn"]
12
- s.date = %q{2010-08-10}
12
+ s.date = %q{2010-08-16}
13
13
  s.description = %q{Allows to add a context to a named_scope that will be passed through the whole scope chain}
14
14
  s.email = %q{info@simplificator.com}
15
15
  s.extra_rdoc_files = [
@@ -12,14 +12,11 @@ module ContextAwareScope
12
12
 
13
13
  # get current context from scope chain
14
14
  def context
15
- p @proxy_scope.class
16
15
  if @proxy_scope.class == ActiveRecord::NamedScope::Scope
17
- p @context
18
16
  recursive_context = @proxy_scope.context
19
17
  recursive_context = recursive_context.keep_merge(@context)
20
18
  recursive_context
21
19
  else
22
- p @context
23
20
  @context
24
21
  end
25
22
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context_aware_scope
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 2
10
- version: 0.0.2
9
+ - 3
10
+ version: 0.0.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Simplificator
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-08-10 00:00:00 +02:00
19
+ date: 2010-08-16 00:00:00 +02:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency