Class: Sapience::Extensions::ActiveRecord::LogSubscriber
- Inherits:
-
ActiveRecord::LogSubscriber
- Object
- ActiveRecord::LogSubscriber
- Sapience::Extensions::ActiveRecord::LogSubscriber
show all
- Includes:
- Loggable
- Defined in:
- lib/sapience/extensions/active_record/log_subscriber.rb
Instance Method Summary
collapse
Methods included from Loggable
included, #logger, #logger=
Instance Method Details
#identity(event) ⇒ Object
Also known as:
sql
11
12
13
14
|
# File 'lib/sapience/extensions/active_record/log_subscriber.rb', line 11
def identity(event)
event = normalize(event)
debug(event) if logger && event
end
|