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

activeadmin / activeadmin / 5021
79%

Build:
DEFAULT BRANCH: master
Ran 05 Sep 2016 09:55PM UTC
Jobs 3
Files 135
Run time 1min
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

pending completion
5021

Pull #4615

travis-ci

web-flow
Change the way of assigning template variables

ActionView::Base#assign method removes all previous view variable assignments if there are any.

For example:

    template.assigns                                                         # => {page_title: "Awesome Title"}
    template.assigns(has_many_block: true)     # this will remove all previous assignments
    template.assignments                                             # => {has_many_block: true}

So, it should not be called when there is a need to add a variable to a template.

This pull request changes this:

    template.assign(foo: 'bar')

to this:

    template.assigns[:foo] = 'bar'
Pull Request #4615: Change the way of assigning template variables

3 of 3 new or added lines in 2 files covered. (100.0%)

3072 of 3773 relevant lines covered (81.42%)

29.97 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
100.0
lib/active_admin/form_builder.rb

Uncovered Existing Lines

Lines Coverage ∆ File
29
100.0
lib/active_admin/form_builder.rb
Jobs
ID Job ID Ran Files Coverage
3 5021.3 (2.3.0, RAILS=3.2.22) 05 Sep 2016 09:56PM UTC 0
81.13
Travis Job 5021.3
4 5021.4 (2.3.0, RAILS=4.2.5) 05 Sep 2016 09:57PM UTC 0
81.24
Travis Job 5021.4
5 5021.5 (2.3.0, RAILS=5.0.0) 05 Sep 2016 09:55PM UTC 0
81.24
Travis Job 5021.5
Source Files on build 5021
Detailed source file information is not available for this build.
  • Back to Repo
  • Travis Build #5021
  • Pull Request #4615
  • PR Base - master (#5016)
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