Does ActiveSupport::Concern
support a way to run a method before or after the object's constructed.
e.g. to achieve something like
Module Benchmarker
extend ActiveSupport::Concern
before_initialize
@constructed_at = DateTime.now
end
end
(Note: Not wanting this for ActiveRecord or ActiveController. Just a generic Ruby class within a Rails project.)