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

sferik / rails_admin / 1980 / 5
96%
master: 96%

Build:
DEFAULT BRANCH: master
Ran 11 Nov 2015 03:49PM UTC
Files 133
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

11 Nov 2015 03:37PM UTC coverage: 97.633%. First build
rbx-2, CI_ORM=mongoid, gemfiles/rails_4.2.gemfile

Pull #2461

travis-ci

Arnvald
Added filtering for polymorphic association objects

Until now, for polymorphic associations, a simple select tag was used, without
filtering option. This commit adds filtering that easily works with switching
association class.

For each association class we need a path to load records from. For simple
association, this is hardcoded in the `select` tag, for polymorphic one, we need
to save them (a div with specific `data` attribute is generated) and switch
whenever object type is switched.

Switching type is a 3 step process:
* update `data-options` attribute of select tag
* destroy filtering object
* create filtering object with new options

Additionally, to avoid weird CSS behaviour, a fix to CSS generation was
introduced. Without it, the object type field was moved to the right (since
object value field had `float: left;` attribute set
Pull Request #2461:

3671 of 3760 relevant lines covered (97.63%)

1787.06 hits per line

Source Files on job 1980.5 (rbx-2, CI_ORM=mongoid, gemfiles/rails_4.2.gemfile)
  • Tree
  • List 0
  • Changed 0
  • Source Changed 0
  • Coverage Changed 0
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 1980
  • Travis Job 1980.5
  • 01c72e0d on github
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