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
1 changed files with 1 additions and 1 deletions

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