blind_date 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0.
|
1
|
+
1.0.2
|
data/blind_date.gemspec
CHANGED
@@ -1,2 +1,25 @@
|
|
1
|
-
|
1
|
+
module BlindDate
|
2
|
+
module ActiveRecord
|
3
|
+
module ConnectionAdapters
|
4
|
+
module Mysql2Adapter
|
5
|
+
module ClassMethods
|
6
|
+
def date_add_sql( style, sql, interval, unit, operator )
|
7
|
+
"( #{sql} #{operator} INTERVAL #{interval} #{unit} )"
|
8
|
+
end
|
9
|
+
end
|
10
|
+
|
11
|
+
module InstanceMethods
|
12
|
+
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.included(receiver)
|
16
|
+
receiver.extend ClassMethods
|
17
|
+
receiver.send :include, InstanceMethods
|
18
|
+
end
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
|
24
|
+
ActiveRecord::ConnectionAdapters::Mysql2Adapter.send :include, BlindDate::ActiveRecord::ConnectionAdapters::Mysql2Adapter
|
2
25
|
|