cached_values 1.7.1 → 1.7.2

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.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/lib/cached_value.rb +1 -1
  3. data/test/schema.rb +1 -0
  4. metadata +3 -3
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.7.1
1
+ 1.7.2
data/lib/cached_value.rb CHANGED
@@ -55,7 +55,7 @@ module ActiveRecord
55
55
 
56
56
  def find_target_by_eval
57
57
  if @reflection.options[:eval].is_a?(String)
58
- eval(@reflection.options[:eval], @owner.send(:binding))
58
+ @owner.send :eval, @reflection.options[:eval]
59
59
  elsif @reflection.options[:eval].is_a?(Proc)
60
60
  @reflection.options[:eval].call(@owner)
61
61
  elsif @reflection.options[:eval].is_a?(Symbol)
data/test/schema.rb CHANGED
@@ -1,3 +1,4 @@
1
+ # coding: utf-8
1
2
 
2
3
  require File.expand_path(File.dirname(__FILE__) + "/leprechaun")
3
4
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 1
7
7
  - 7
8
- - 1
9
- version: 1.7.1
8
+ - 2
9
+ version: 1.7.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Jack Danger Canty
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-14 00:00:00 -07:00
17
+ date: 2010-07-15 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency