effective_form_inputs 0.6.1 → 0.6.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: accc0fe7bd2c46e9ef6623d7c68683a77dc1f5f7
4
- data.tar.gz: 029d82f57a52ec949f525d914fda00476fcc015e
3
+ metadata.gz: a1427216fa5d8b8644610448626b6516ef3032cc
4
+ data.tar.gz: 6b3d905b747e633efc2f2845bd89780fdb52a85c
5
5
  SHA512:
6
- metadata.gz: 269ddf7bd1da80e1daeab5a6f2174b57f87c43c52d55d483dd40bcf894eeeb941358b80d489f035ec8dc38c163530befe630a16cc37b665bf488ceaac700083f
7
- data.tar.gz: e29783d2fe62b7a9380683fd31478e664f12eb2a0f36699ead1337ae6d1540c2bd10676a577f48781e8d6426083856fdff1c0239b87539f6a385b2ad86a397d5
6
+ metadata.gz: 37230c84b459df6757d427de23b41f2483907354330c195a6d77f9b22e9816f1108c4a339e544c7e9bbced401ac90b0085c7fa05b682c38c815ba3d50d3e1cee
7
+ data.tar.gz: f1cfaceaa7fcbac7a2e92d1bf032c10c093416594fc98d6290ea00e7d21a96294019bb28feb16f1c388b5c29084fece9d44477b893883de415dad37b4278552f
@@ -1,7 +1,7 @@
1
1
  module Inputs
2
2
  module EffectiveTel
3
3
  class Input < Effective::FormInput
4
- delegate :content_tag, :text_field_tag, :to => :@template
4
+ delegate :content_tag, :telephone_field_tag, :to => :@template
5
5
 
6
6
  DEFAULT_TEL_MASK = '(999) 999-9999? x99999'
7
7
  DEFAULT_CELL_MASK = '(999) 999-9999'
@@ -20,14 +20,14 @@ module Inputs
20
20
 
21
21
  def to_html
22
22
  if options[:input_group] == false
23
- return text_field_tag(field_name, value, tag_options)
23
+ return telephone_field_tag(field_name, value, tag_options)
24
24
  end
25
25
 
26
26
  content_tag(:div, class: 'input-group') do
27
27
  content_tag(:span, class: 'input-group-addon') do
28
28
  content_tag(:i, '', class: "glyphicon glyphicon-#{glyphicon}").html_safe
29
29
  end +
30
- text_field_tag(field_name, value, tag_options)
30
+ telephone_field_tag(field_name, value, tag_options)
31
31
  end
32
32
  end
33
33
 
@@ -1,3 +1,3 @@
1
1
  module EffectiveFormInputs
2
- VERSION = '0.6.1'.freeze
2
+ VERSION = '0.6.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_form_inputs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.6.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect