We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 98524d1 commit fbf5cebCopy full SHA for fbf5ceb
lib/rails_admin/config/fields/types/serialized.rb
@@ -9,11 +9,11 @@ class Serialized < RailsAdmin::Config::Fields::Types::Text
9
RailsAdmin::Config::Fields::Types::register(self)
10
11
register_instance_option :formatted_value do
12
- YAML.dump value
+ YAML.dump(value)
13
end
14
15
def parse_input(params)
16
- params[name] = (params[name].blank? ? nil : YAML.load(params[name], :safe => true)) if params[name].is_a?(::String)
+ params[name] = (params[name].blank? ? nil : YAML.safe_load(params[name])) if params[name].is_a?(::String)
17
18
19
0 commit comments