]> cat aescling's git repositories - mastodon.git/blob - app/models/application_record.rb
Fix batch order warnings in BatchedRemoveStatusService (#15409)
[mastodon.git] / app / models / application_record.rb
1 # frozen_string_literal: true
2
3 class ApplicationRecord < ActiveRecord::Base
4 self.abstract_class = true
5
6 include Remotable
7
8 class << self
9 def update_index(_type_name, *_args, &_block)
10 super if Chewy.enabled?
11 end
12 end
13
14 def boolean_with_default(key, default_value)
15 value = attributes[key]
16
17 if value.nil?
18 default_value
19 else
20 value
21 end
22 end
23 end
This page took 0.092906 seconds and 4 git commands to generate.