dm-persevere-adapter 0.48.1 → 0.48.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.48.1
1
+ 0.48.2
@@ -1,4 +1,3 @@
1
- require 'ruby-debug'
2
1
  module DataMapper
3
2
  module Types
4
3
  class JsonReferenceCollection < Type
@@ -78,15 +77,4 @@ module DataMapper
78
77
  end
79
78
  end
80
79
 
81
- # Setup in json_reference.rb
82
- # class Property
83
- # attr_accessor :reference_class
84
- #
85
- # alias original_initialize initialize
86
- # def initialize(model, name, type, options = {})
87
- # @reference_class = options.delete(:reference)
88
- #
89
- # original_initialize(model, name, type, options)
90
- # end
91
- # end
92
80
  end
@@ -9,9 +9,11 @@ module DataMapper
9
9
  end
10
10
  alias initialize initialize_with_reference_class
11
11
 
12
+
12
13
  def reference_class
13
14
  return @_reference_class if @_reference_class.kind_of?(Class)
14
15
 
16
+ # TODO: Revisit this when we move to ActiveSupport.
15
17
  @_reference_class = Extlib::Inflection.constantize(@_reference_class.to_s)
16
18
 
17
19
  return @_reference_class
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 48
8
- - 1
9
- version: 0.48.1
8
+ - 2
9
+ version: 0.48.2
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ivan R. Judson
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-04-16 00:00:00 -06:00
18
+ date: 2010-04-19 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency