lib/active_warnings.rb in active_warnings-0.1.3 vs lib/active_warnings.rb in active_warnings-0.1.4
- old
+ new
@@ -5,13 +5,12 @@
require 'active_warnings/validator'
module ActiveWarnings
extend ActiveSupport::Concern
+ include ActiveModel::Validations
included do
- include ActiveModel::Validations
-
define_callbacks :validate_warning, scope: :name
def errors
@run_warning_validations ? warnings : super
end