-
-
Save Fivell/c753eca34d93565fc34c to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module ActiveAdmin | |
module Views | |
class ActiveAdminForm | |
class DeprecatedFormBufferSubstitute | |
def initialize(form) | |
@form = form | |
end | |
def << (value) | |
@form.text_node value.html_safe | |
end | |
end | |
def form_buffers | |
warn "DEPRECATION WARNING: 'form_buffers' is no longer needed." | |
@form_buffers ||= [DeprecatedFormBufferSubstitute.new(self)] | |
end | |
end | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment