• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

sferik / rails_admin / 2779 / 1
94%
master: 96%

Build:
Build:
LAST BUILD BRANCH: ci
DEFAULT BRANCH: master
Ran 01 Nov 2019 01:53PM UTC
Files 128
Run time 16s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

01 Nov 2019 01:47PM UTC coverage: 94.012%. Remained the same
2.6.3, CI_ORM=active_record CI_DB_ADAPTER=sqlite3, gemfiles/rails_6.0.gemfile

Pull #3210

travis-ci

web-flow
Fix the case where username is nil, not whodunnit

I encounter the problem where paper_trails's whodunnit isn't displayed.
It turned out that `username` method returns nil.
`try` method returns nil when there's no method, so when user doesn't have `email` method,
`@user_class.find(@version.whodunnit).try(:email)` returns nil.
Then, try this out:
`nil rescue nil || :foo`
This returns nil, surprisingly.
This means if user doesn't have email method, username is always nil.
So my fix is like below:
`(nil rescue nil) || :foo`
This returns `:foo` as expected.
Pull Request #3210: Fix the case where username is nil, not whodunnit

3344 of 3557 relevant lines covered (94.01%)

7412.49 hits per line

Source Files on job 2779.1 (2.6.3, CI_ORM=active_record CI_DB_ADAPTER=sqlite3, gemfiles/rails_6.0.gemfile)
  • Tree
  • List 0
  • Changed 40
  • Source Changed 25
  • Coverage Changed 39
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2761
  • Travis Job 2779.1
  • c87c5829 on github
  • Prev Job for 2.6.3, CI_ORM=active_record CI_DB_ADAPTER=sqlite3, gemfiles/rails_6.0.gemfile on patch-1 (#2777.1)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc