netshade-sql_valued_columns 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 +1 -1
- data/lib/sql_valued_columns.rb +2 -2
- data/sql_valued_columns.gemspec +1 -1
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
data/lib/sql_valued_columns.rb
CHANGED
@@ -56,7 +56,7 @@ module SqlValuedColumns
|
|
56
56
|
when String
|
57
57
|
str = a
|
58
58
|
if a =~ /\#\{[^\}]+\}/
|
59
|
-
str =
|
59
|
+
str = eval('"' + str + '"')
|
60
60
|
end
|
61
61
|
connection.quote(str)
|
62
62
|
else
|
@@ -65,7 +65,7 @@ module SqlValuedColumns
|
|
65
65
|
end
|
66
66
|
h[name] = "#{function}(#{fmt_args.join(",")})"
|
67
67
|
else
|
68
|
-
h[name] = function
|
68
|
+
h[name] = eval('"' + function + '"')
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
data/sql_valued_columns.gemspec
CHANGED