Module: RecordsCount
- Defined in:
- lib/records_count.rb,
lib/records_count/version.rb
Defined Under Namespace
Classes: Colorizer, Message, Warning
Constant Summary collapse
- VERSION =
'0.0.2'
Class Method Summary collapse
Class Method Details
.do_work! ⇒ Object
57 58 59 60 61 62 |
# File 'lib/records_count.rb', line 57 def RecordsCount.do_work! ActiveSupport::Notifications.subscribe('instantiation.active_record') do |name, start, finish, id, payload| RecordsCount::Warning.new(start, finish).print RecordsCount::Message.new(payload).print end end |