will_pickdate 0.0.8 → 0.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/will_pickdate/pickdate_builder.rb +2 -6
- data/lib/will_pickdate/version.rb +1 -1
- data/lib/will_pickdate.rb +1 -3
- metadata +1 -1
@@ -1,10 +1,10 @@
|
|
1
|
-
|
1
|
+
class ActionView::Base
|
2
2
|
def datetime_field(object_name, method, options = {})
|
3
3
|
InstanceTag.new(object_name, method, self, options.delete(:object)).to_datetime_field_tag(options)
|
4
4
|
end
|
5
5
|
end
|
6
6
|
|
7
|
-
|
7
|
+
class ActionView::Helpers::InstanceTag
|
8
8
|
def to_datetime_field_tag(options = {})
|
9
9
|
options = options.stringify_keys
|
10
10
|
options = DEFAULT_FIELD_OPTIONS.merge(options)
|
@@ -17,10 +17,6 @@ module PickdateHelperInstanceTag
|
|
17
17
|
end
|
18
18
|
end
|
19
19
|
|
20
|
-
class ActionView::Helpers::InstanceTag
|
21
|
-
include PickdateHelperInstanceTag
|
22
|
-
end
|
23
|
-
|
24
20
|
class ActionView::Helpers::FormBuilder
|
25
21
|
def datetime_field(method, options = {})
|
26
22
|
@template.datetime_field(@object_name, method, objectify_options(options))
|
data/lib/will_pickdate.rb
CHANGED