Permalink
Browse files

Remove railtie

  • Loading branch information...
1 parent c2a4ee8 commit b79ded571c0a542e108ee45df14d1bcb113224b9 @haines haines committed Dec 24, 2011
Showing with 5 additions and 14 deletions.
  1. +0 −1 lib/formtastic.rb
  2. +5 −1 lib/formtastic/engine.rb
  3. +0 −12 lib/formtastic/railtie.rb
View
@@ -1,5 +1,4 @@
# encoding: utf-8
-require 'formtastic/railtie' if defined?(::Rails)
require 'formtastic/engine' if defined?(::Rails)
module Formtastic
View
@@ -1,7 +1,11 @@
-# Configure Rails 3.1 to have assert_select_jquery() in tests
module Formtastic
# Required for formtastic.css to be discoverable in the asset pipeline
# @private
class Engine < ::Rails::Engine
+ initializer 'formtastic.initialize' do
+ ActiveSupport.on_load(:action_view) do
+ include Formtastic::Helpers::FormHelper
+ end
+ end
end
end
View
@@ -1,12 +0,0 @@
-# encoding: utf-8
-
-module Formtastic
- # @private
- class Railtie < Rails::Railtie
- initializer 'formtastic.initialize' do
- ActiveSupport.on_load(:action_view) do
- include Formtastic::Helpers::FormHelper
- end
- end
- end
-end

0 comments on commit b79ded5

Please sign in to comment.