simple_form_awesome 2.4.0 → 2.5.0

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/README.md CHANGED
@@ -9,7 +9,7 @@ https://docs.atlassian.com/aui/latest . Enjoy it!
9
9
 
10
10
  Add it to your Gemfile:
11
11
 
12
- `gem 'simple_form_awesome', '~> 2.4.0'`
12
+ `gem 'simple_form_awesome', '~> 2.5.0'`
13
13
 
14
14
  Run the following command to install it:
15
15
 
@@ -16,7 +16,6 @@ module SimpleForm
16
16
  end
17
17
 
18
18
  def copy_config
19
- template "config/initializers/simple_form.rb"
20
19
 
21
20
  if options[:bootstrap]
22
21
  template "config/initializers/simple_form_bootstrap.rb"
@@ -24,6 +23,8 @@ module SimpleForm
24
23
  template "config/initializers/simple_form_foundation.rb"
25
24
  elsif options[:aui]
26
25
  template "config/initializers/simple_form_aui.rb"
26
+ else
27
+ template "config/initializers/simple_form.rb"
27
28
  end
28
29
 
29
30
  directory 'config/locales'
@@ -9,8 +9,8 @@
9
9
 
10
10
  = simple_form_for @user do |form|
11
11
  %fieldset
12
- = f.input :name
13
- = f.input :description, :as => :text_area
12
+ = f.input :name, :require => true
13
+ = f.input :description, :require => true
14
14
 
15
15
  .field_group
16
16
  = f.submit :class => "aui-button aui-button-primary"
@@ -18,4 +18,5 @@ SimpleForm.setup do |config|
18
18
 
19
19
  config.default_wrapper = :aui
20
20
  config.form_class = :aui
21
+ config.generate_additional_classes_for = [:input]
21
22
  end
@@ -26,7 +26,6 @@ module SimpleForm
26
26
  map_type :date, :time, :datetime, :to => SimpleForm::Inputs::DateTimeInput
27
27
  map_type :country, :time_zone, :to => SimpleForm::Inputs::PriorityInput
28
28
  map_type :boolean, :to => SimpleForm::Inputs::BooleanInput
29
- map_type :text_area, :to => SimpleForm::Inputs::TextAreaInput
30
29
 
31
30
 
32
31
  def self.discovery_cache
@@ -17,6 +17,5 @@ module SimpleForm
17
17
  autoload :RangeInput, 'simple_form/inputs/range_input'
18
18
  autoload :StringInput, 'simple_form/inputs/string_input'
19
19
  autoload :TextInput, 'simple_form/inputs/text_input'
20
- autoload :TextAreaInput, 'simple_form/inputs/text_area_input'
21
20
  end
22
21
  end
@@ -1,3 +1,3 @@
1
1
  module SimpleForm
2
- VERSION = "2.4.0".freeze
2
+ VERSION = "2.5.0".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple_form_awesome
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.0
4
+ version: 2.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-06-01 00:00:00.000000000 Z
15
+ date: 2013-06-06 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel
@@ -76,7 +76,6 @@ files:
76
76
  - lib/simple_form/inputs/string_input.rb
77
77
  - lib/simple_form/inputs/block_input.rb
78
78
  - lib/simple_form/inputs/collection_check_boxes_input.rb
79
- - lib/simple_form/inputs/text_area_input.rb
80
79
  - lib/simple_form/inputs/password_input.rb
81
80
  - lib/simple_form/inputs/text_input.rb
82
81
  - lib/simple_form/inputs/numeric_input.rb
@@ -1,12 +0,0 @@
1
- module SimpleForm
2
- module Inputs
3
- class TextAreaInput < TextInput
4
- def input
5
- input_html_classes.unshift(:textarea).delete(:text_area)
6
- input_html_options[:style] ||= ""
7
- input_html_options[:style] += ";height: 61px; width: 251px;"
8
- super
9
- end
10
- end
11
- end
12
- end