diff --git a/lib/validates_timeliness/orm/active_model.rb b/lib/validates_timeliness/orm/active_model.rb index c2adc76..08c0fd5 100644 --- a/lib/validates_timeliness/orm/active_model.rb +++ b/lib/validates_timeliness/orm/active_model.rb @@ -42,9 +42,7 @@ def define_timeliness_method(attr_name, before_type_cast=false) # Lazy instantiate module as container of timeliness methods included in the model def generated_timeliness_methods - @generated_timeliness_methods ||= Module.new { |m| - extend Mutex_m - }.tap { |mod| include mod } + @generated_timeliness_methods ||= Module.new.tap { |mod| include mod } end def timeliness_method_already_implemented?(method_name)