formtastic_extensions 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -11,7 +11,7 @@ begin
11
11
  gem.homepage = "http://github.com/krasivotokak/formtastic_extensions"
12
12
  gem.authors = ["Alexander Semyonov"]
13
13
  gem.add_development_dependency "thoughtbot-shoulda"
14
- gem.add_dependency('justinfrench-formtastic', '0.2.4')
14
+ gem.add_dependency('formtastic', '0.2.5')
15
15
  gem.add_dependency('redinger-validation_reflection', '0.3.3')
16
16
  # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
17
17
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{formtastic_extensions}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Alexander Semyonov"]
@@ -51,16 +51,16 @@ Gem::Specification.new do |s|
51
51
 
52
52
  if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
53
53
  s.add_development_dependency(%q<thoughtbot-shoulda>, [">= 0"])
54
- s.add_runtime_dependency(%q<justinfrench-formtastic>, ["= 0.2.4"])
54
+ s.add_runtime_dependency(%q<formtastic>, ["= 0.2.5"])
55
55
  s.add_runtime_dependency(%q<redinger-validation_reflection>, ["= 0.3.3"])
56
56
  else
57
57
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
58
- s.add_dependency(%q<justinfrench-formtastic>, ["= 0.2.4"])
58
+ s.add_dependency(%q<formtastic>, ["= 0.2.5"])
59
59
  s.add_dependency(%q<redinger-validation_reflection>, ["= 0.3.3"])
60
60
  end
61
61
  else
62
62
  s.add_dependency(%q<thoughtbot-shoulda>, [">= 0"])
63
- s.add_dependency(%q<justinfrench-formtastic>, ["= 0.2.4"])
63
+ s.add_dependency(%q<formtastic>, ["= 0.2.5"])
64
64
  s.add_dependency(%q<redinger-validation_reflection>, ["= 0.3.3"])
65
65
  end
66
66
  end
@@ -1,5 +1,5 @@
1
1
  module FormtasticExtensions
2
- class SemanticFormBuilder < Formtastic::SemanticFormBuilder
2
+ class SemanticFormBuilder < ::Formtastic::SemanticFormBuilder
3
3
  @@all_fields_required_by_default = false
4
4
  @@i18n_lookups_by_default = true
5
5
  @@input_class = 'b_field'
@@ -75,10 +75,10 @@ module FormtasticExtensions
75
75
  if @object
76
76
  prefix = @object.new_record? ? 'Create' : 'Save'
77
77
  object_name = @object.class.name.underscore
78
- i18n_prefix = prefix.downcase
79
78
  else
80
79
  object_name = @object_name.to_s.underscore
81
80
  end
81
+ i18n_prefix = prefix.downcase
82
82
 
83
83
  i18n_prefix = prefix.downcase
84
84
  I18n.t("formtastic.buttons.#{object_name}.#{i18n_prefix}",
@@ -1,3 +1,4 @@
1
+ require 'formtastic'
1
2
  require 'formtastic_extensions'
2
3
 
3
4
  ActionView::Base.send :include, Formtastic::SemanticFormHelper
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: formtastic_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Semyonov
@@ -23,14 +23,14 @@ dependencies:
23
23
  version: "0"
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
- name: justinfrench-formtastic
26
+ name: formtastic
27
27
  type: :runtime
28
28
  version_requirement:
29
29
  version_requirements: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "="
32
32
  - !ruby/object:Gem::Version
33
- version: 0.2.4
33
+ version: 0.2.5
34
34
  version:
35
35
  - !ruby/object:Gem::Dependency
36
36
  name: redinger-validation_reflection