will_pickdate 0.0.2 → 0.0.4

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.
@@ -5,8 +5,7 @@ module PickdateHelper
5
5
  InstanceTag.new(object_name, method, self, options.delete(:object)).to_datetime_field_tag(options)
6
6
  end
7
7
 
8
- class InstanceTag
9
-
8
+ module PickdateHelperInstanceTag
10
9
  def to_datetime_field_tag(options = {})
11
10
  options = options.stringify_keys
12
11
  options = DEFAULT_FIELD_OPTIONS.merge(options)
@@ -18,4 +17,14 @@ module PickdateHelper
18
17
  tag("input", options)
19
18
  end
20
19
  end
20
+
21
+ class InstanceTag
22
+ include PickdateHelperInstanceTag
23
+ end
24
+
25
+ class FormBuilder
26
+ def datetime_field(method, options = {})
27
+ @template.datetime_select(@object_name, method, objectify_options(options))
28
+ end
29
+ end
21
30
  end
@@ -1,3 +1,3 @@
1
1
  module WillPickdate
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: will_pickdate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: