File tree Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Expand file tree Collapse file tree 1 file changed +0
-21
lines changed Original file line number Diff line number Diff line change @@ -34,27 +34,6 @@ def sanitized_allowed_tags=(tags)
3434 def sanitized_allowed_attributes = ( attributes )
3535 sanitizer_vendor . safe_list_sanitizer . allowed_attributes = attributes
3636 end
37-
38- [ :protocol_separator ,
39- :uri_attributes ,
40- :bad_tags ,
41- :allowed_css_properties ,
42- :allowed_css_keywords ,
43- :shorthand_css_properties ,
44- :allowed_protocols ] . each do |meth |
45- meth_name = "sanitized_#{ meth } "
46-
47- define_method ( meth_name ) { deprecate_option ( meth_name ) }
48- define_method ( "#{ meth_name } =" ) { |_ | deprecate_option ( "#{ meth_name } =" ) }
49- end
50-
51- private
52- def deprecate_option ( name )
53- ActiveSupport ::Deprecation . warn "The #{ name } option is deprecated " \
54- "and has no effect. Until Rails 5 the old behavior can still be " \
55- "installed. To do this add the `rails-deprecated-sanitizer` to " \
56- "your Gemfile. Consult the Rails 4.2 upgrade guide for more information."
57- end
5837 end
5938 end
6039 end
You can’t perform that action at this time.
0 commit comments