arel 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/arel/algebra/core_extensions/object.rb +13 -0
- data/lib/arel/version.rb +1 -1
- metadata +4 -4
@@ -12,6 +12,19 @@ module Arel
|
|
12
12
|
yield(self)
|
13
13
|
end
|
14
14
|
|
15
|
+
# TODO remove this when ActiveSupport beta1 is out.
|
16
|
+
# Returns the object's singleton class.
|
17
|
+
def singleton_class
|
18
|
+
class << self
|
19
|
+
self
|
20
|
+
end
|
21
|
+
end unless respond_to?(:singleton_class)
|
22
|
+
|
23
|
+
# class_eval on an object acts like singleton_class_eval.
|
24
|
+
def class_eval(*args, &block)
|
25
|
+
singleton_class.class_eval(*args, &block)
|
26
|
+
end
|
27
|
+
|
15
28
|
Object.send(:include, self)
|
16
29
|
end
|
17
30
|
end
|
data/lib/arel/version.rb
CHANGED
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.3.
|
8
|
+
- 3
|
9
|
+
version: 0.3.3
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Bryan Helmkamp
|
@@ -30,8 +30,8 @@ dependencies:
|
|
30
30
|
- 3
|
31
31
|
- 0
|
32
32
|
- 0
|
33
|
-
-
|
34
|
-
version: 3.0.0.
|
33
|
+
- beta
|
34
|
+
version: 3.0.0.beta
|
35
35
|
type: :runtime
|
36
36
|
version_requirements: *id001
|
37
37
|
description: |-
|