Skip to content

Commit

Permalink
Add yaml permitted classes for dev env
Browse files Browse the repository at this point in the history
part of #11355
  • Loading branch information
cesswairimu authored Sep 30, 2022
1 parent f060bd2 commit 5e64915
Showing 1 changed file with 15 additions and 0 deletions.
15 changes: 15 additions & 0 deletions config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -44,5 +44,20 @@
host: 'localhost:3000'
}
config.action_controller.default_url_options = { host: 'localhost:3000' }

# These are required to load classes into YAML, eg /test/fixtures/user_tags.yml#L129
config.active_record.yaml_column_permitted_classes = [
OAuth::AccessToken,
OAuth::Consumer,
Symbol,
Net::HTTP,
OpenSSL::SSL::SSLContext,
OpenSSL::SSL::Session,
URI::HTTPS,
URI::RFC3986_Parser,
Regexp,
Net::HTTPOK,
ActiveSupport::HashWithIndifferentAccess
]

end

0 comments on commit 5e64915

Please sign in to comment.