Skip to content

Commit

Permalink
updated rails version for specs to 3.1.0, use Formtastic::FormBuilder…
Browse files Browse the repository at this point in the history
…, if it's available, cause Formtastic::SemanticFormBuilder was deprecated
  • Loading branch information
fxposter committed Oct 22, 2011
1 parent bec34a2 commit c70bf96
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gemfiles/Gemfile.rails3_1
@@ -1,2 +1,2 @@
instance_eval File.read('gemfiles/Gemfile.base')
gem "rails", "~> 3.1.0.rc"
gem "rails", "~> 3.1.0"
2 changes: 1 addition & 1 deletion lib/nested_form/builders.rb
Expand Up @@ -15,7 +15,7 @@ class SimpleBuilder < ::SimpleForm::FormBuilder

begin
require 'formtastic'
class FormtasticBuilder < ::Formtastic::SemanticFormBuilder
class FormtasticBuilder < (defined?(::Formtastic::FormBuilder) ? Formtastic::FormBuilder : ::Formtastic::SemanticFormBuilder)
include ::NestedForm::BuilderMixin
end
rescue LoadError
Expand Down

0 comments on commit c70bf96

Please sign in to comment.