Module: ExceptionHunter::UserAttributesCollector
- Extended by:
- UserAttributesCollector
- Included in:
- UserAttributesCollector
- Defined in:
- lib/exception_hunter/user_attributes_collector.rb
Instance Method Summary collapse
Instance Method Details
#attributes ⇒ Object
11 12 13 |
# File 'lib/exception_hunter/user_attributes_collector.rb', line 11 def attributes Config.user_attributes end |
#collect_attributes(user) ⇒ Object
5 6 7 8 9 |
# File 'lib/exception_hunter/user_attributes_collector.rb', line 5 def collect_attributes(user) attributes.reduce({}) do |data, attribute| data.merge(attribute => user.try(attribute)) end end |