lib/uploader/engine.rb in glebtv-rails-uploader-0.6.1 vs lib/uploader/engine.rb in glebtv-rails-uploader-0.7.0
- old
+ new
@@ -19,10 +19,11 @@
initializer "uploader.hooks" do
require "uploader/hooks/active_record" if Object.const_defined?("ActiveRecord")
if Object.const_defined?("SimpleForm")
require "uploader/hooks/simple_form"
- elsif Object.const_defined?("Formtastic")
+ end
+ if Object.const_defined?("Formtastic")
require "uploader/hooks/formtastic"
end
end
end
end