1
0
Fork 0
mirror of https://github.com/heartcombo/simple_form.git synced 2022-11-09 12:19:26 -05:00

Merge pull request #1428 from moofkit/placeholder-text-silent-deprication

silent deprication warning for placeholder_text
This commit is contained in:
Felipe Renan 2018-03-01 09:52:10 -03:00 committed by GitHub
commit 97f63304a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -8,7 +8,7 @@ module SimpleForm
nil
end
def placeholder_text
def placeholder_text(wrapper_options = nil)
placeholder = options[:placeholder]
placeholder.is_a?(String) ? placeholder : translate_from_namespace(:placeholders)
end