validates_timeliness/lib/validates_timeliness/orm/active_model.rb
Adam Meehan 321834b5ff Fix thread lock on undefine
Move active model methods into active model ORM module to be included
manually if not using AR or other ORM
2016-01-06 22:18:54 +11:00

21 lines
402 B
Ruby

module ValidatesTimeliness
module ORM
module ActiveModel
extend ActiveSupport::Concern
module ClassMethods
public
def define_attribute_methods(*attr_names)
super.tap { define_timeliness_methods}
end
def undefine_attribute_methods
super.tap { undefine_timeliness_attribute_methods }
end
end
end
end
end