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

sleede / fab-manager / #106

pending completion
#106

push

coveralls-ruby

sylvainbx
Merge branch 'dev' for release 6.0.0

704 of 704 new or added lines in 168 files covered. (100.0%)

7919 of 13474 relevant lines covered (58.77%)

15.29 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

50.0
/app/models/application_record.rb
1
# frozen_string_literal: true
2

3
# SuperClass for all app models.
4
# This is a single spot to configure app-wide model behavior.
5
class ApplicationRecord < ActiveRecord::Base
1✔
6
  self.abstract_class = true
1✔
7

8
  # Update attributes with validation context.
9
  # In Rails you can provide a context while you save, for example: `.save(:step1)`, but no way to
10
  # provide a context while you update. This method just adds the way to update with validation
11
  # context.
12
  #
13
  # @param attributes [Hash] attributes to assign
14
  # @param context [*] validation context
15
  def update_with_context(attributes, context)
1✔
16
    with_transaction_returning_status do
×
17
      assign_attributes(attributes)
×
18
      save(**{ context: context })
×
19
    end
20
  end
21
end
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