Skip to content

Commit

Permalink
Remove active_record.yaml initializers
Browse files Browse the repository at this point in the history
  • Loading branch information
byroot committed Jul 13, 2022
1 parent fbb7f0b commit efc58ab
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions activerecord/lib/active_record/railtie.rb
Original file line number Diff line number Diff line change
Expand Up @@ -279,23 +279,5 @@ class Railtie < Rails::Railtie # :nodoc:
self.signed_id_verifier_secret ||= -> { Rails.application.key_generator.generate_key("active_record/signed_id") }
end
end

initializer "active_record.use_yaml_unsafe_load" do |app|
config.after_initialize do
unless app.config.active_record.use_yaml_unsafe_load.nil?
ActiveRecord::Base.use_yaml_unsafe_load =
app.config.active_record.use_yaml_unsafe_load
end
end
end

initializer "active_record.yaml_column_permitted_classes" do |app|
config.after_initialize do
unless app.config.active_record.yaml_column_permitted_classes.nil?
ActiveRecord::Base.yaml_column_permitted_classes =
app.config.active_record.yaml_column_permitted_classes
end
end
end
end
end

0 comments on commit efc58ab

Please sign in to comment.