lib/enum_help.rb in enum_help-0.0.7 vs lib/enum_help.rb in enum_help-0.0.8
- old
+ new
@@ -1,5 +1,14 @@
require "enum_help/version"
-require "enum_help/simple_form"
+
+simple_form_exist = true
+begin
+ require 'simple_form'
+rescue LoadError
+ simple_form_exist = false
+end
+if simple_form_exist
+ require "enum_help/simple_form"
+end
require "enum_help/i18n"
require "enum_help/railtie"