will_pickdate 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,10 +1,10 @@
1
- module PickdateHelper
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
- module PickdateHelperInstanceTag
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))
@@ -1,3 +1,3 @@
1
1
  module WillPickdate
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/will_pickdate.rb CHANGED
@@ -1,4 +1,2 @@
1
1
  require "will_pickdate/pickdate_builder.rb"
2
- require "will_pickdate/version.rb"
3
-
4
- ActionView::Base.send :include, PickdateHelper
2
+ require "will_pickdate/version.rb"
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.8
4
+ version: 0.0.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: