Class: AuditLoggable::Store
- Inherits:
-
ActiveSupport::CurrentAttributes
- Object
- ActiveSupport::CurrentAttributes
- AuditLoggable::Store
- Defined in:
- lib/audit_loggable/store.rb
Instance Method Summary collapse
Instance Method Details
#current_user ⇒ Object
9 10 11 12 13 14 15 16 17 |
# File 'lib/audit_loggable/store.rb', line 9 def current_user super&.yield_self do |user| if user.is_a?(::Proc) || user.is_a?(::Method) || user.respond_to?(:call) user.call else user end end end |