lib/generators/active_enum/templates/config.rb in active_enum-0.9.12 vs lib/generators/active_enum/templates/config.rb in active_enum-1.0.0.pre
- old
+ new
@@ -1,15 +1,17 @@
# Form helper integration
-# require 'active_enum/form_helpers/formtastic' # for Formtastic <2
-# require 'active_enum/form_helpers/formtastic2' # for Formtastic 2.x
+# require 'active_enum/form_helpers/simple_form' # for SimpleForm
ActiveEnum.setup do |config|
# Extend classes to add enumerate method
# config.extend_classes = [ ActiveRecord::Base ]
# Return name string as value for attribute method
# config.use_name_as_value = false
+
+ # Raise exception ActiveEnum::NotFound if enum value for a given id or name is not found
+ # config.raise_on_not_found = false
# Storage of values (:memory, :i18n)
# config.storage = :memory
end