Module: ActiveRecord::AttributeMethods::ClassMethods

Defined in:
lib/freedom_patches/active_record_attribute_methods.rb

Constant Summary collapse

BLANK_ARRAY =
[].freeze

Instance Method Summary collapse

Instance Method Details

#disallow_raw_sql!(args, permit: nil) ⇒ Object

this patch just allows everything in Rails 6+



18
19
20
21
22
# File 'lib/freedom_patches/active_record_attribute_methods.rb', line 18

def disallow_raw_sql!(args, permit: nil)
  # we may consider moving to https://github.com/rails/rails/pull/33330
  # once all frozen string hints are in place
  BLANK_ARRAY
end