vexile 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/vexile.rb +2 -2
- data/lib/vexile/version.rb +1 -1
- metadata +1 -1
data/lib/vexile.rb
CHANGED
@@ -13,12 +13,10 @@ module Vexile
|
|
13
13
|
end
|
14
14
|
|
15
15
|
class VexileProxy < Proxy
|
16
|
-
attr_reader :__source__
|
17
16
|
def __setobj__ value
|
18
17
|
klass = @options[:owner_class].vexile_const_lookup(@options[:class_name])
|
19
18
|
raise "#{@options[:class_name]} is not a vexile class" unless klass
|
20
19
|
@target = klass.new
|
21
|
-
@__source__ = value
|
22
20
|
load_params value
|
23
21
|
end
|
24
22
|
end
|
@@ -28,6 +26,7 @@ module Vexile
|
|
28
26
|
extend ActiveSupport::Concern
|
29
27
|
|
30
28
|
included do
|
29
|
+
attr_reader :__source__
|
31
30
|
Vexile.klasses ||= []
|
32
31
|
Vexile.klasses << self
|
33
32
|
include ActiveModel::Validations
|
@@ -40,6 +39,7 @@ module Vexile
|
|
40
39
|
end
|
41
40
|
end
|
42
41
|
end
|
42
|
+
@__source__ = hsh
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
data/lib/vexile/version.rb
CHANGED